ach
Real-Time IPC Library
ach_channel Struct Reference

Descriptor for an Ach channel. More...

#include <ach.h>

Data Fields

union {
   struct {
      struct ach_header *   shm
 pointer to mmap'ed block
 
      size_t   len
 length of memory mapping
 
      int   fd
 file descriptor of mmap'ed file
 
      union {
         uint64_t   seq_num
 last sequence number read
 
         achk_opt_t   k_opts
 Used by kernel devices.
 
      } 
 
      size_t   next_index
 next index entry to try get from
 
      clockid_t   clock
 attributes used to create this channel
 
      volatile sig_atomic_t   cancel
 cancel a waiting ach_get
 
      const struct ach_channel_vtab *   vtab
 virtual method table
 
      int   fd_source_lock
 file descriptor for source lock
 
   } 
 
   uint64_t   reserved [16]
 Reserve space to compatibly add future options.
 
}; 
 

Detailed Description

Descriptor for an Ach channel.

Warning
This method may not be threadsafe. If library clients need to access the same channel from different threads, either open the channel with separate struct ach_channel desciptors for each thread, or synchronize access to the same descriptor.

Library users are strongly discourged from directly accessing members of this structure; its fields may change in future library versions. All access should be through the provided library functions.


The documentation for this struct was generated from the following file: