MCPcopy Create free account
hub / github.com/nodejs/nan / SendProgress_

Method SendProgress_

nan.h:2366–2375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2364
2365 private:
2366 void SendProgress_(const T *data, size_t count) {
2367 T *new_data = new T[count];
2368 std::copy(data, data + count, new_data);
2369
2370 uv_mutex_lock(&async_lock);
2371 asyncdata_.push(std::pair<T*, size_t>(new_data, count));
2372 uv_mutex_unlock(&async_lock);
2373
2374 uv_async_send(&this->async);
2375 }
2376
2377 uv_mutex_t async_lock;
2378 std::queue<std::pair<T*, size_t> > asyncdata_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected