| 118 | }; |
| 119 | |
| 120 | int on_reset(bthread_id_t id, void* data, int error_code) { |
| 121 | OnResetArg* arg = static_cast<OnResetArg*>(data); |
| 122 | arg->id = id; |
| 123 | arg->error_code = error_code; |
| 124 | return bthread_id_unlock_and_destroy(id); |
| 125 | } |
| 126 | |
| 127 | TEST(BthreadIdTest, error_is_destroy) { |
| 128 | bthread_id_t id1; |
nothing calls this directly
no test coverage detected