Next Previous Up Top Contents Index

3.5.1 Mutual exclusion primitives

allSleeping

Function

Syntax

allSleeping thread-list -> bool

Description

Returns true if every thread in thread-list is sleeping at the time of the call, and false otherwise. The thread-list must be of type MLWorks.Threads.Internal.thread_id list.

This function can be used for deadlock detection if thread-list is the list of every currently running thread.


MLWorks Reference Manual version 2.0 - 29 Jul 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker