Skip to content

Wait/Notify enhancements

Compare
Choose a tag to compare
@solariun solariun released this 07 Jan 12:58
· 109 commits to main since this release

Release 1.1.0

  • finish() method will be call every time run() is returned, this allow special cases like eventual threads to self-destroy itself, otherwise the object would be only a memory leak.... see examples on main.cpp

  • SmartLock RAII compliance, allow lock or shared lock to be auto release on object destruction.

  • IMPORTANT Now Notifications (Wait/Notify) can be timedout. if Tick based time is given, the waiting procedure will only stay blocked during it. (NO SPIN LOCK, REAL STATE BLOCK)

  • IMPORTANT LookForWaitings block for timeout time will a wait for specific refVar/tag is available, otherwise timeout, can be used sync wait and notify availability

  • IMPORTANT Now Wait/Notify Tags, used to give meaning/channel to a notification can be se to "all tags" if Tag is zero, otherwise it will respect refVar/Tag