MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / Thread

Method Thread

src/ThreadPool.h:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77public:
78 Thread(void* (*wrapper)(void*), ThreadArg* arg, bool delete_arg, unsigned int num) : wrapper(wrapper), arg(arg), delete_arg(delete_arg), num(num) {
79 state = NOT_STARTED;
80 tid = 0;
81 memset(&tv_started, 0, sizeof(tv_started));
82 memset(&tv_finished, 0, sizeof(tv_finished));
83 pthread_mutex_init(&mp, NULL);
84 }
85
86 void running() {
87 pthread_mutex_lock(&mp);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected