My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
vspace::EventSet Class Reference

#include <vspace.h>

Public Member Functions

 EventSet ()
 
void add (Event *event)
 
void add (Event &event)
 
EventSetoperator<< (Event *event)
 
EventSetoperator<< (Event &event)
 
int wait ()
 

Private Attributes

Event_head
 
Event_tail
 

Detailed Description

Definition at line 2579 of file vspace.h.

Constructor & Destructor Documentation

◆ EventSet()

vspace::EventSet::EventSet ( )
inline

Definition at line 2584 of file vspace.h.

2584 : _head(NULL), _tail(NULL) {
2585 }
Event * _head
Definition: vspace.h:2581
Event * _tail
Definition: vspace.h:2581
#define NULL
Definition: omList.c:12

Member Function Documentation

◆ add() [1/2]

void vspace::EventSet::add ( Event event)
inline

Definition at line 2587 of file vspace.h.

2587 {
2588 add(&event);
2589 }
STATIC_VAR unsigned add[]
Definition: misc_ip.cc:107

◆ add() [2/2]

void vspace::EventSet::add ( Event event)

Definition at line 1103 of file vspace.cc.

1103 {
1104 event->_next = NULL;
1105 if (_head == NULL) {
1106 _head = _tail = event;
1107 } else {
1108 _tail->_next = event;
1109 _tail = event;
1110 }
1111}
Event * _next
Definition: vspace.h:2572

◆ operator<<() [1/2]

EventSet & vspace::EventSet::operator<< ( Event event)
inline

Definition at line 2594 of file vspace.h.

2594 {
2595 add(event);
2596 return *this;
2597 }

◆ operator<<() [2/2]

EventSet & vspace::EventSet::operator<< ( Event event)
inline

Definition at line 2590 of file vspace.h.

2590 {
2591 add(event);
2592 return *this;
2593 }

◆ wait()

int vspace::EventSet::wait ( )

Definition at line 1113 of file vspace.cc.

1113 {
1114 size_t n = 0;
1115 for (Event *event = _head; event; event = event->_next) {
1116 if (!event->start_listen((int) (n++))) {
1117 break;
1118 }
1119 }
1121 for (Event *event = _head; event; event = event->_next) {
1122 event->stop_listen();
1123 }
1125 return (int) result;
1126}
return result
Definition: facAbsBiFact.cc:75
void accept_signals()
Definition: vspace.cc:981
ipc_signal_t check_signal(bool resume, bool lock)
Definition: vspace.cc:944

Field Documentation

◆ _head

Event* vspace::EventSet::_head
private

Definition at line 2581 of file vspace.h.

◆ _tail

Event * vspace::EventSet::_tail
private

Definition at line 2581 of file vspace.h.


The documentation for this class was generated from the following files: