MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / SendProgress_

Method SendProgress_

napi-inl.h:6862–6877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6860
6861template <class T>
6862inline void AsyncProgressWorker<T>::SendProgress_(const T* data, size_t count) {
6863 T* new_data = new T[count];
6864 std::copy(data, data + count, new_data);
6865
6866 T* old_data;
6867 {
6868 std::lock_guard<std::mutex> lock(this->_mutex);
6869 old_data = _asyncdata;
6870 _asyncdata = new_data;
6871 _asyncsize = count;
6872 _signaled = false;
6873 }
6874 this->NonBlockingCall(nullptr);
6875
6876 delete[] old_data;
6877}
6878
6879template <class T>
6880inline void AsyncProgressWorker<T>::Signal() {

Callers 2

SendMethod · 0.80
SignalMethod · 0.80

Calls 1

NonBlockingCallMethod · 0.80

Tested by

no test coverage detected