![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <fcthread.h>
Inheritance diagram for fcThread:
Collaboration diagram for fcThread:Public Member Functions | |
| fcThread ()=default | |
| fcThread (void(tfunc)(void *), void *tdata) | |
| void | set_func (void(tfunc)(void *), void *tdata) |
| ~fcThread () override | |
Protected Member Functions | |
| void | run () Q_DECL_OVERRIDE |
Private Attributes | |
| void(* | func )(void *data) = nullptr |
| void * | data = nullptr |
| QMutex | mutex |
Definition at line 17 of file fcthread.h.
|
default |
| fcThread::fcThread | ( | void(tfunc)(void *) | , |
| void * | tdata | ||
| ) |
Definition at line 15 of file fcthread.cpp.
|
overridedefault |
|
protected |
Definition at line 28 of file fcthread.cpp.
| void fcThread::set_func | ( | void(tfunc)(void *) | , |
| void * | tdata | ||
| ) |
Definition at line 20 of file fcthread.cpp.
Referenced by tai_control_gained(), and texai_control_gained().
|
private |
Definition at line 30 of file fcthread.h.
Referenced by run(), and set_func().
|
private |
Definition at line 29 of file fcthread.h.
Referenced by run(), and set_func().
|
private |
Definition at line 31 of file fcthread.h.
Referenced by run().