Class Waitable[in Threading]

Base abstract class for synchronization Structures.

class Waitable

more...

Summary

release()Releases a structure acquired by a waiting function.

Detailed description

class Waitable


Base abstract class for synchronization Structures.

Actually, this class represents the interface exposed by synchronization structures to script. Objects derived from this class can be used in functions and methods in the group Waitings. Usually, the Waitable class is implemented by Structures, but any object providing a mean to be acquired, released and waited for a change in the acquirability state can be derived from this class.

Currently, only the Waitable.release method is exposed to scripts; this means that scripts cannot create their own waitable objects, but only use those provided by this or other modules.

Methods

release()

Releases a structure acquired by a waiting function.

Waitable.release( )

Unless the nature of the acquired object is known, and that object is known not to require release, every acquired object must be explicitly released after a succesful wait.


Made with faldoc 2.2.1