mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Ensure AsyncWorker options are persisted #2130
This commit is contained in:
parent
c1d4a68558
commit
e82a585cec
@ -18,6 +18,9 @@ Requires libvips v8.9.1
|
||||
* Ensure N-API prebuilt binaries work on RHEL7 and its derivatives.
|
||||
[#2119](https://github.com/lovell/sharp/issues/2119)
|
||||
|
||||
* Ensure AsyncWorker options are persisted.
|
||||
[#2130](https://github.com/lovell/sharp/issues/2130)
|
||||
|
||||
### v0.25.1 - 7th March 2020
|
||||
|
||||
* Ensure prebuilt binaries are fetched based on N-API version.
|
||||
|
@ -229,6 +229,7 @@ Napi::Value metadata(const Napi::CallbackInfo& info) {
|
||||
// Join queue for worker thread
|
||||
Napi::Function callback = info[1].As<Napi::Function>();
|
||||
MetadataWorker *worker = new MetadataWorker(callback, baton, debuglog);
|
||||
worker->Receiver().Set("options", options);
|
||||
worker->Queue();
|
||||
|
||||
// Increment queued task counter
|
||||
|
@ -1360,6 +1360,7 @@ Napi::Value pipeline(const Napi::CallbackInfo& info) {
|
||||
// Join queue for worker thread
|
||||
Napi::Function callback = info[1].As<Napi::Function>();
|
||||
PipelineWorker *worker = new PipelineWorker(callback, baton, debuglog, queueListener);
|
||||
worker->Receiver().Set("options", options);
|
||||
worker->Queue();
|
||||
|
||||
// Increment queued task counter
|
||||
|
@ -154,6 +154,7 @@ Napi::Value stats(const Napi::CallbackInfo& info) {
|
||||
// Join queue for worker thread
|
||||
Napi::Function callback = info[1].As<Napi::Function>();
|
||||
StatsWorker *worker = new StatsWorker(callback, baton, debuglog);
|
||||
worker->Receiver().Set("options", options);
|
||||
worker->Queue();
|
||||
|
||||
// Increment queued task counter
|
||||
|
Loading…
x
Reference in New Issue
Block a user