| 69 | }; |
| 70 | |
| 71 | static 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 | |
| 83 | static inline void acquireThreadSystemHandle(struct ThreadSystemData* t) { tfrg_atomic32_add_relaxed(&t->references_Atomic, 1); } |
| 84 |
no test coverage detected