github.com/256dpi/max-go@v0.7.0/lib/max/ext_syssem.h (about)

     1  #ifndef _EXT_SYSSEM_H_
     2  #define _EXT_SYSSEM_H_
     3  
     4  #include "ext_prefix.h"
     5  
     6  BEGIN_USING_C_LINKAGE
     7  
     8  // syssem is a platform independent way of using named semaphores 
     9  // that can be used to synchronize multiple processes
    10  
    11  typedef void * t_syssem; 
    12  
    13  t_max_err syssem_create(t_syssem *x, const char *name, long flags, unsigned int value);
    14  t_max_err syssem_open(t_syssem *x, const char *name, long flags); 
    15  t_max_err syssem_close(t_syssem x);
    16  t_max_err syssem_wait(t_syssem x);
    17  t_max_err syssem_trywait(t_syssem x);
    18  t_max_err syssem_post(t_syssem x);
    19  
    20  END_USING_C_LINKAGE
    21  
    22  #endif // #ifndef _EXT_SYSSEM_H_