Only initialize [Not Reset] fields, other fields will be reset in bthread_start* functions
| 124 | // Only initialize [Not Reset] fields, other fields will be reset in |
| 125 | // bthread_start* functions |
| 126 | TaskMeta() { |
| 127 | pthread_spin_init(&version_lock, 0); |
| 128 | version_butex = butex_create_checked<uint32_t>(); |
| 129 | *version_butex = 1; |
| 130 | pthread_mutex_init(&trace_lock, NULL); |
| 131 | } |
| 132 | |
| 133 | ~TaskMeta() { |
| 134 | pthread_mutex_destroy(&trace_lock); |
nothing calls this directly
no test coverage detected