gabr42 / OmniThreadLibrary

A simple and powerful multithreading library for Delphi
http://www.omnithreadlibrary.com
Other
463 stars 140 forks source link

Enhancement : Enqueue a message with priority in the TOmniMessageQueue #195

Open EpoUnlimited opened 7 months ago

EpoUnlimited commented 7 months ago

An interesting addition to the TOmniMessageQueue would be the possibility to enqueue a message with priority (a new function PriorityEnqueue (?) or an additional parameter to the existing one) . In this case, the next message executed will be the one sent with this functionality and will bypass all other messages in the queue.