| 177 | } |
| 178 | |
| 179 | static Value Release(const CallbackInfo& /* info */) { |
| 180 | if (s_tsfn.Release() != napi_ok) { |
| 181 | Error::Fatal("Release", "ThreadSafeFunction.Release() failed"); |
| 182 | } |
| 183 | return Value(); |
| 184 | } |
| 185 | |
| 186 | static Value StartThread(const CallbackInfo& info) { |
| 187 | return StartThreadInternal(info, ThreadSafeFunctionInfo::BLOCKING); |