zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
Functions
zos-semaphore.cc File Reference
#include "zos-semaphore.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <sys/modes.h>

Functions

unsigned int __zsync_val_compare_and_swap32 (volatile unsigned int *__p, unsigned int __compVal, unsigned int __exchVal)
 
unsigned int atomic_dec (volatile unsigned int *loc)
 
unsigned int atomic_inc (volatile unsigned int *loc)
 
int __sem_init (__sem_t *s0, int shared, unsigned int val)
 
int __sem_post (__sem_t *s0)
 
int __sem_trywait (__sem_t *s0)
 
int __sem_timedwait (__sem_t *s0, const struct timespec *abs_timeout)
 
int __sem_wait (__sem_t *s0)
 
int __sem_destroy (__sem_t *s0)
 
int __sem_getvalue (__sem_t *s0, int *sval)
 

Function Documentation

◆ __sem_destroy()

int __sem_destroy ( __sem_t s0)

◆ __sem_getvalue()

int __sem_getvalue ( __sem_t s0,
int *  sval 
)

◆ __sem_init()

int __sem_init ( __sem_t s0,
int  shared,
unsigned int  val 
)

TODO(itodorov) - zos: document these interfaces

◆ __sem_post()

int __sem_post ( __sem_t s0)

◆ __sem_timedwait()

int __sem_timedwait ( __sem_t s0,
const struct timespec *  abs_timeout 
)

◆ __sem_trywait()

int __sem_trywait ( __sem_t s0)

◆ __sem_wait()

int __sem_wait ( __sem_t s0)

◆ __zsync_val_compare_and_swap32()

unsigned int __zsync_val_compare_and_swap32 ( volatile unsigned int *  __p,
unsigned int  __compVal,
unsigned int  __exchVal 
)

◆ atomic_dec()

unsigned int atomic_dec ( volatile unsigned int *  loc)

◆ atomic_inc()

unsigned int atomic_inc ( volatile unsigned int *  loc)