Fix Linux/macOS builds
This commit is contained in:
parent
dc0b74e07f
commit
7a68faff36
@ -428,13 +428,13 @@ protected:
|
||||
|
||||
template<typename... Args>
|
||||
void cleanupAndInvoke(Args&&... args) {
|
||||
uv_fs_req_cleanup(get());
|
||||
uv_fs_req_cleanup(this->get());
|
||||
this->invoke(std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
template<typename F, typename... Args>
|
||||
void cleanupAndInvokeSync(F &&f, Args&&... args) {
|
||||
uv_fs_req_cleanup(get());
|
||||
uv_fs_req_cleanup(this->get());
|
||||
std::forward<F>(f)(std::forward<Args>(args)..., nullptr);
|
||||
}
|
||||
|
||||
|
||||
@ -243,7 +243,7 @@ public:
|
||||
* An EndEvent event will be emitted when there is no more data to read.
|
||||
*/
|
||||
void read() {
|
||||
this->invoke(&uv_read_start, this->template get<uv_stream_t>(), &allocCallback, &readCallback);
|
||||
this->invoke(&uv_read_start, this->template get<uv_stream_t>(), &this->allocCallback, &readCallback);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user