Lines Matching defs:data
26 // Thread data to transmit to JS
29 static void secondary_thread(void* data) {
30 napi_threadsafe_function ts_fn = data;
38 // Source thread producing the data
39 static void data_source_thread(void* data) {
40 napi_threadsafe_function ts_fn = data;
121 // Getting the data into JS
122 static void call_js(napi_env env, napi_value cb, void* hint, void* data) {
125 NODE_API_CALL_RETURN_VOID(env, napi_create_int32(env, *(int*)data, &argv));
133 // Getting the data into JS with the alternative reference
134 static void call_ref(napi_env env, napi_value _, void* hint, void* data) {
138 NODE_API_CALL_RETURN_VOID(env, napi_create_int32(env, *(int*)data, &argv));
167 static void join_the_threads(napi_env env, void *data, void *hint) {
168 uv_thread_t *the_threads = data;