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
Initial thought involves converting lock_t to a structure, containing both the atomic variable, and a list of threads currently waiting for it to unlock. When it is unlocked, the first thread will be unblocked and removed from the list.
There may be a more efficient way to achieve this, however.
May also be useful to have both thread-aware and non-thread-aware variants.
The text was updated successfully, but these errors were encountered:
Initial thought involves converting
lock_t
to a structure, containing both the atomic variable, and a list of threads currently waiting for it to unlock. When it is unlocked, the first thread will be unblocked and removed from the list.There may be a more efficient way to achieve this, however.
May also be useful to have both thread-aware and non-thread-aware variants.
The text was updated successfully, but these errors were encountered: