class EVENTS_SET
Summary
A set of events to be waited for. Expected events are set via the expect feature when the EVENTS_SET is not queryable. After having been waited for (see wait), the EVENTS_SET becomes queryable and events may be checked by using the event_occurred feature. To reuse the EVENTS_SET (make it not queryable again) one may call reset.
   -----------------------------                  ------------------------
  |                             | <-- wait --- |                        |
  | State: queryable          |                | State: not queryable |
  | (may call event_occurred) |                | (may call expect)    |
  |                             | -- reset --> |                        |
   -----------------------------                  ------------------------
May be useful for: See also JOB
Direct parents
Insert list: ANY, PLATFORM
Overview
Creation features
{ANY}
Features
{}
{ANY}
low level features
{EVENTS_SET_HANDLER}
{EVENT_DESCRIPTOR}
{JOB, TIME_EVENT}
Expected events
{ANY}
Expected events
{}
{}
Maximum:
{}
Minimum:
{}
Bits:
{}
make
effective procedure
{}
queryable: BOOLEAN
writable attribute
{ANY}
At creation this object is not queryable.
reset
effective procedure
{ANY}
Reset the event descriptors.
wait
effective procedure
{ANY}
Blocks until requested condition (max time and/or data).
expect (event: EVENT_DESCRIPTOR)
effective procedure
{ANY}
wait will return if that event happens.
event_occurred (event: EVENT_DESCRIPTOR): BOOLEAN
effective function
{ANY}
True if wait returned because that event happened.
expect_readable (descriptor: INTEGER_32)
effective procedure
can_read (descriptor: INTEGER_32): BOOLEAN
effective function
expect_writeable (descriptor: INTEGER_32)
effective procedure
can_write (descriptor: INTEGER_32): BOOLEAN
effective function
expect_exception (descriptor: INTEGER_32)
effective procedure
has_exception (descriptor: INTEGER_32): BOOLEAN
effective function
set_read_size (rs: INTEGER_32)
effective procedure
set_write_size (ws: INTEGER_32)
effective procedure
set_exception_size (es: INTEGER_32)
effective procedure
set_highest (h: INTEGER_32)
effective procedure
after (timeout_ms: INTEGER_32)
effective procedure
timeout_ms is the max time in milliseconds to wait when wait begins.
at (date: MICROSECOND_TIME)
effective procedure
date is the last moment thatwait can wait.
when_data (file: INPUT_STREAM)
effective procedure
is_data (file: INPUT_STREAM): BOOLEAN
effective function
when_connection (server: SOCKET_SERVER)
effective procedure
is_connection (server: SOCKET_SERVER): BOOLEAN
effective function
when_free (file: OUTPUT_STREAM)
effective procedure
is_free (file: OUTPUT_STREAM): BOOLEAN
effective function
when_exception (file: STREAM)
effective procedure
is_exception (file: STREAM): BOOLEAN
effective function
when_expecter (expecter: EVENTS_EXPECTER)
effective procedure
has_expecter (expecter: EVENTS_EXPECTER): BOOLEAN
effective function
current_time: MICROSECOND_TIME
effective function
event_expected (a_event: EVENT_DESCRIPTOR): BOOLEAN
effective function
{ANY}
True in check modes if the event is expected.
writable attribute
{}
This array is created only if the assertion level is at least require_check.
mark_event_as_expected (a_event: EVENT_DESCRIPTOR): BOOLEAN
effective function
{}
Mark the event as expected and return True.
create_events: BOOLEAN
effective function
{}
Create the events array.
reset_events: BOOLEAN
effective function
{}
Empties the events array.
timeout: INTEGER_32
writable attribute
{}
expiration: MICROSECOND_TIME
writable attribute
{}
expiration_valid: BOOLEAN
writable attribute
{}
current_time_memory: MICROSECOND_TIME
writable attribute
{}
current_time_valid: BOOLEAN
writable attribute
{}
read_set: POINTER
writable attribute
{}
read_size: INTEGER_32
writable attribute
{}
read_more: BOOLEAN
writable attribute
{}
write_set: POINTER
writable attribute
{}
write_size: INTEGER_32
writable attribute
{}
write_more: BOOLEAN
writable attribute
{}
exception_set: POINTER
writable attribute
{}
exception_size: INTEGER_32
writable attribute
{}
exception_more: BOOLEAN
writable attribute
{}
highest: INTEGER_32
writable attribute
{}
sequencer_create_set: POINTER
{}
sequencer_reset (set: POINTER)
{}
sequencer_watch (set: POINTER, file: INTEGER_32)
{}
sequencer_is_ready (set: POINTER, file: INTEGER_32): BOOLEAN
{}
sequencer_wait (n: INTEGER_32, rset: POINTER, rsize: INTEGER_32, rmote: BOOLEAN, wset: POINTER, wsize: INTEGER_32, wmore: BOOLEAN, eset: POINTER, esize: INTEGER_32, emore: BOOLEAN, s: INTEGER_32, us: INTEGER_32): INTEGER_32
{}
return -1 if signal interrupt occurred
Maximum_character_code: INTEGER_16
{}
Largest supported code for CHARACTER values.
Maximum_integer_8: INTEGER_8
is 127
constant attribute
{}
Largest supported value of type INTEGER_8.
Maximum_integer_16: INTEGER_16
is 32767
constant attribute
{}
Largest supported value of type INTEGER_16.
Maximum_integer: INTEGER_32
is 2147483647
constant attribute
{}
Largest supported value of type INTEGER/INTEGER_32.
Maximum_integer_32: INTEGER_32
is 2147483647
constant attribute
{}
Largest supported value of type INTEGER/INTEGER_32.
Maximum_integer_64: INTEGER_64
is 9223372036854775807
constant attribute
{}
Largest supported value of type INTEGER_64.
Maximum_real_32: REAL_32
is {REAL_32 3.4028234663852885981170418348451692544e+38}
constant attribute
{}
Largest non-special (no NaNs nor infinity) supported value of type REAL_32.
Maximum_real: REAL_64
{}
Largest non-special (no NaNs nor infinity) supported value of type REAL.
Maximum_real_64: REAL_64
{}
Largest non-special (no NaNs nor infinity) supported value of type REAL.
Maximum_real_80: REAL_EXTENDED
{}
Largest supported value of type REAL_80.
Minimum_character_code: INTEGER_16
{}
Smallest supported code for CHARACTER values.
Minimum_integer_8: INTEGER_8
is -128
constant attribute
{}
Smallest supported value of type INTEGER_8.
Minimum_integer_16: INTEGER_16
is -32768
constant attribute
{}
Smallest supported value of type INTEGER_16.
Minimum_integer: INTEGER_32
is -2147483648
constant attribute
{}
Smallest supported value of type INTEGER/INTEGER_32.
Minimum_integer_32: INTEGER_32
is -2147483648
constant attribute
{}
Smallest supported value of type INTEGER/INTEGER_32.
Minimum_integer_64: INTEGER_64
is -9223372036854775808
constant attribute
{}
Smallest supported value of type INTEGER_64.
Minimum_real_32: REAL_32
is {REAL_32 -3.40282346638528859811704183484516925440e+38}
constant attribute
{}
Smallest non-special (no NaNs nor infinity) supported value of type REAL_32.
Minimum_real: REAL_64
{}
Smallest non-special (no NaNs nor infinity) supported value of type REAL.
Minimum_real_64: REAL_64
{}
Smallest non-special (no NaNs nor infinity) supported value of type REAL.
Minimum_real_80: REAL_64
{}
Smallest supported value of type REAL_80.
Boolean_bits: INTEGER_32
{}
Number of bits in a value of type BOOLEAN.
Character_bits: INTEGER_32
{}
Number of bits in a value of type CHARACTER.
Integer_bits: INTEGER_32
{}
Number of bits in a value of type INTEGER.
Real_bits: INTEGER_32
is 64
constant attribute
{}
Number of bits in a value of type REAL.
Pointer_bits: INTEGER_32
{}
Number of bits in a value of type POINTER.