From OpenSCADAWiki
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 3: | Line 3: | ||
* ''ResRW( );'' — Initialization of the resource. | * ''ResRW( );'' — Initialization of the resource. | ||
* ''static void resRequestW( long tm = 0 );'' — Request the resource for writing/modification with wait timeout ''tm'' (in milliseconds). | * ''static void resRequestW( long tm = 0 );'' — Request the resource for writing/modification with wait timeout ''tm'' (in milliseconds). | ||
− | * ''bool resTryW( );'' — Request try the resource for writing/modification. On success return | + | * ''bool resTryW( );'' — Request try the resource for writing/modification. On success return TRUE else FALSE. |
* ''static void resRequestR( long tm = 0 );'' — Request the resource for reading with wait timeout ''tm'' (in milliseconds). | * ''static void resRequestR( long tm = 0 );'' — Request the resource for reading with wait timeout ''tm'' (in milliseconds). | ||
− | * ''bool resTryR( );'' — Request try the resource for reading. On success return | + | * ''bool resTryR( );'' — Request try the resource for reading. On success return TRUE else FALSE. |
* ''static void resRelease( );'' — Release of the resource. | * ''static void resRelease( );'' — Release of the resource. |
Latest revision as of 20:52, 9 November 2022
Resource R/W lock object (ResRW)
Public methods:
- ResRW( ); — Initialization of the resource.
- static void resRequestW( long tm = 0 ); — Request the resource for writing/modification with wait timeout tm (in milliseconds).
- bool resTryW( ); — Request try the resource for writing/modification. On success return TRUE else FALSE.
- static void resRequestR( long tm = 0 ); — Request the resource for reading with wait timeout tm (in milliseconds).
- bool resTryR( ); — Request try the resource for reading. On success return TRUE else FALSE.
- static void resRelease( ); — Release of the resource.