inseven / opolua

A compiled-OPL interpreter for iOS written in Lua
https://opolua.org
MIT License
12 stars 0 forks source link

Ensure utilities with injectable target DispatchQueues deliver results serially #192

Closed jbmorley closed 2 years ago

jbmorley commented 2 years ago

Right now, it would be possible to inject a concurrent DispatchQueue as the target queue, which would doubtless cause reliability issues. It's not a problem today, but we should probably make sure we guarantee serial behaviour by using DisaptchQueue.setTarget() on our own internal serial queue to guard against incorrect usage.

jbmorley commented 2 years ago

Fixed in 444ba6b57ffcea426e040eb0e5087cc09cd85817.