| 6178 | typename DataType, |
| 6179 | void (*CallJs)(Napi::Env, Napi::Function, ContextType*, DataType*)> |
| 6180 | inline ContextType* |
| 6181 | TypedThreadSafeFunction<ContextType, DataType, CallJs>::GetContext() const { |
| 6182 | void* context; |
| 6183 | napi_status status = napi_get_threadsafe_function_context(_tsfn, &context); |
| 6184 | NAPI_FATAL_IF_FAILED(status, |
| 6185 | "TypedThreadSafeFunction::GetContext", |
| 6186 | "napi_get_threadsafe_function_context"); |
| 6187 | return static_cast<ContextType*>(context); |
| 6188 | } |
| 6189 | |
| 6190 | // static |
| 6191 | template <typename ContextType, |
nothing calls this directly
no test coverage detected