| 18 | //------------------------------------------------------------------------------ |
| 19 | |
| 20 | bool ErrorCtx_Init(void) { |
| 21 | int res = pthread_key_create(&_tlsErrorCtx, NULL); |
| 22 | ASSERT(res == 0); |
| 23 | |
| 24 | return (res == 0); |
| 25 | } |
| 26 | |
| 27 | ErrorCtx *ErrorCtx_Get(void) { |
| 28 | ErrorCtx *ctx = pthread_getspecific(_tlsErrorCtx); |
no outgoing calls