MCPcopy Create free account
hub / github.com/ConfettiFX/The-Forge / threadSystemCleanup

Function threadSystemCleanup

Common_3/Utilities/Threading/ThreadSystem.c:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69};
70
71static void threadSystemCleanup(struct ThreadSystemData* t)
72{
73 ASSERT(tfrg_atomic32_load_relaxed(&t->references_Atomic) == 0);
74
75 exitMutex(&t->mutex);
76 exitConditionVariable(&t->conditionTasks);
77 exitConditionVariable(&t->conditionIsIdle);
78
79 arrfree(t->tasks);
80 tf_free(t);
81}
82
83static inline void acquireThreadSystemHandle(struct ThreadSystemData* t) { tfrg_atomic32_add_relaxed(&t->references_Atomic, 1); }
84

Callers 2

threadSystemInitFunction · 0.85

Calls 3

tf_freeFunction · 0.85
exitMutexFunction · 0.50
exitConditionVariableFunction · 0.50

Tested by

no test coverage detected