these functions can be used when waiting on multiple queues at once, to prevent the thread state from being changed unexpectedly while initialising a set of wait items.
these functions can be used when waiting on multiple queues at once, to prevent the thread state from being changed unexpectedly while initialising a set of wait items.