You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Changelog
Loony
Added destroy proc
Wards
Added PoolWaiter flag
Pool waiter is used when threads are using loony as a work queue in a threadpool environment. Pops that would result in a nil return instead use a futex to await on the queue. When a thread successfully pushes, they wake a waiting thread that will then pop the item off. There is lots of room to optimise this within the loony code, however this is the best that can be done on the Ward side.
The killWaiters proc is used to awaken threads and force them to return a nil value instead of waiting.