From OpenSCADAWiki
Jump to: navigation, search
(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 "true" else "false".
+
* ''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 "true" else "false".
+
* ''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

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Documents/API)
=== {{Anch|ResRW|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.
Translation=== {{Anch|ResRW|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.

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.