2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c7/uem.h File Reference


Detailed Description

header for above [Sec. 5.18.2]

Definition in file uem.h.

Go to the source code of this file.

Compounds

struct  uem_event
struct  uem_reg

Enumerations

enum  UEM_TYPE {
  UEM_SVMSG, UEM_PXMSG, UEM_SVSEM, UEM_PXSEM,
  UEM_FD_READ, UEM_FD_WRITE, UEM_FD_ERROR, UEM_SIG,
  UEM_PROCESS, UEM_HEARTBEAT, UEM_NONE
}

Functions

bool uem_bgn (void)
bool uem_end (void)
bool uem_register_svmsg (int mqid, size_t msgsize, void *data)
bool uem_register_svsem (int semid, struct sembuf *sops, size_t nsops, void *data)
bool uem_register_signal (int signum, void *data)
bool uem_register_process (pid_t pid, void *data)
bool uem_register_fdset (int nfds, fd_set *fdset, enum UEM_TYPE type, void *data)
bool uem_register_heartbeat (long usecs, void *data)
uem_event * uem_wait (void)
void uem_free (struct uem_event *e)
bool uem_unregister (struct uem_event *e)


Enumeration Type Documentation

enum UEM_TYPE
 

Enumeration values:
UEM_SVMSG 
UEM_PXMSG 
UEM_SVSEM 
UEM_PXSEM 
UEM_FD_READ 
UEM_FD_WRITE 
UEM_FD_ERROR 
UEM_SIG 
UEM_PROCESS 
UEM_HEARTBEAT 
UEM_NONE 

Definition at line 18 of file uem.h.


Function Documentation

bool uem_bgn void   ) 
 

Definition at line 610 of file uem.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, ec_rv, pthread_sigmask(), set(), sigdelset(), sigemptyset(), and sigfillset().

Referenced by main().

bool uem_end void   ) 
 

Definition at line 625 of file uem.c.

Referenced by main().

void uem_free struct uem_event e  ) 
 

Definition at line 544 of file uem.c.

References free_svmsg(), uem_event::ue_reg, UEM_FD_ERROR, UEM_FD_READ, UEM_FD_WRITE, UEM_HEARTBEAT, UEM_NONE, UEM_PROCESS, UEM_PXMSG, UEM_PXSEM, UEM_SIG, UEM_SVMSG, UEM_SVSEM, and uem_reg::ur_type.

Referenced by cleanup_handler(), dequeue_event(), main(), queue_event(), thread_fdset(), thread_heartbeat(), thread_process(), thread_signal(), thread_svmsg(), and thread_svsem().

bool uem_register_fdset int  nfds,
fd_set *  fdset,
enum UEM_TYPE  type,
void *  data
 

Definition at line 362 of file uem.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, ec_null, ec_rv, errno, new_reg(), pthread_create(), thread_fdset(), UEM_FD_ERROR, UEM_FD_READ, UEM_FD_WRITE, uem_reg::ur_data, uem_reg::ur_resource, uem_reg::ur_size, uem_reg::ur_tid, and uem_reg::ur_type.

Referenced by setup_fdset().

bool uem_register_heartbeat long  usecs,
void *  data
 

Definition at line 509 of file uem.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_null, ec_rv, new_reg(), pthread_create(), thread_heartbeat(), UEM_HEARTBEAT, uem_reg::ur_data, uem_reg::ur_resource, uem_reg::ur_size, uem_reg::ur_tid, and uem_reg::ur_type.

Referenced by main().

bool uem_register_process pid_t  pid,
void *  data
 

Definition at line 465 of file uem.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_null, ec_rv, new_reg(), pthread_create(), thread_process(), UEM_PROCESS, uem_reg::ur_data, uem_reg::ur_resource, uem_reg::ur_size, uem_reg::ur_tid, and uem_reg::ur_type.

Referenced by setup_process().

bool uem_register_signal int  signum,
void *  data
 

Definition at line 416 of file uem.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, ec_null, ec_rv, new_reg(), pthread_create(), pthread_sigmask(), set(), sigaddset(), sigemptyset(), thread_signal(), UEM_SIG, uem_reg::ur_data, uem_reg::ur_resource, uem_reg::ur_tid, and uem_reg::ur_type.

Referenced by setup_signal().

bool uem_register_svmsg int  mqid,
size_t  msgsize,
void *  data
 

Definition at line 138 of file uem.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_null, ec_rv, new_reg(), pthread_create(), thread_svmsg(), UEM_SVMSG, uem_reg::ur_data, uem_reg::ur_resource, uem_reg::ur_size, uem_reg::ur_tid, and uem_reg::ur_type.

Referenced by setup_systemv_msg().

bool uem_register_svsem int  semid,
struct sembuf sops,
size_t  nsops,
void *  data
 

Definition at line 183 of file uem.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_null, ec_rv, new_reg(), pthread_create(), thread_svsem(), UEM_SVSEM, uem_reg::ur_data, uem_reg::ur_resource, uem_reg::ur_size, uem_reg::ur_tid, and uem_reg::ur_type.

Referenced by setup_systemv_sem().

bool uem_unregister struct uem_event e  ) 
 

Definition at line 574 of file uem.c.

References dequeue_event(), EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, ec_rv, free_svsem_reg(), pthread_cancel(), uem_event::ue_reg, UEM_FD_ERROR, UEM_FD_READ, UEM_FD_WRITE, UEM_HEARTBEAT, UEM_NONE, UEM_PROCESS, UEM_PXMSG, UEM_PXSEM, UEM_SIG, UEM_SVMSG, UEM_SVSEM, uem_reg::ur_tid, and uem_reg::ur_type.

Referenced by main().

struct uem_event* uem_wait void   ) 
 

Definition at line 526 of file uem.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_rv, event_head, pthread_cond_wait(), pthread_mutex_lock(), pthread_mutex_unlock(), uem_event::ue_next, uem_cond_event, uem_mtx, and uem_wait().

Referenced by main(), and uem_wait().


Generated on Fri Apr 23 10:57:10 2004 for AUP2 Example Source by doxygen 1.3.1