/* ************************************************************************ ** ** Copyright (c) 2010 by ** Core|Vision B.V. ** Cereslaan 10b ** 5384 VT Heesch ** The Netherlands ** ** All Rights Reserved ** ************************************************************************ */ /* ************************************************************************ ** ** Project name: Dual Inventive: Utility Library ** Filename: cp3000-sem.h ** Author: Jack Weeland ** Date: February 25, 2010 ** File version: 1.00 of February 25, 2010 ** ************************************************************************ */ /* ************************************************************************ ** ** CP3000 inter-process semaphores ** ************************************************************************ */ #ifndef __CP3000_SEMAPHORE_H #define __CP3000_SEMAPHORE_H /* ** Datatype */ typedef struct CP3000_SEMAPHORE *cp3000_sem_t; /* ** Exported functions */ // initialisation and destruction cp3000_sem_t cp3000_sem_init(const char *name); int cp3000_sem_deinit(cp3000_sem_t); // wait (P) and release (V) functions int cp3000_sem_p(cp3000_sem_t); int cp3000_sem_v(cp3000_sem_t); #endif /* __CP3000_SEMAPHORE_H */