ufo-kit / ufo-core

GLib-based framework for GPU-based data processing
GNU Lesser General Public License v3.0
24 stars 8 forks source link

InputTask: Use poison pill instead of busy waiting #157

Closed tfarago closed 6 years ago

tfarago commented 6 years ago

Moreover, I am not sure if the previous version was really safe in the get_requisition because if the remote thread called stop when the local thread is in get_requisition, get_requisition just returns without setting the requisition dimensions, which would break the obtaining of output in the schedulers.

matze commented 6 years ago

Man, now I feel stupid. That is … of course much more elegant and performant ;-)

tfarago commented 6 years ago

Making you feel stupid is what keeps me warm at night :smile: