source: git/Singular/links/simpleipc.h @ df326b

spielwiese
Last change on this file since df326b was df326b, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Updates due to master (links) + SW adaptation/separation
  • Property mode set to 100644
File size: 449 bytes
Line 
1#ifndef _SIMPLEIPC_H
2#define _SIMPLEIPC_H
3
4#ifdef __cplusplus
5extern "C"
6{
7#endif
8#define SIPC_MAX_SEMAPHORES 256
9
10#define USE_SEM_INIT 0
11
12int sipc_semaphore_init(int id, int count);
13int sipc_semaphore_exists(int id);
14int sipc_semaphore_acquire(int id);
15int sipc_semaphore_try_acquire(int id);
16int sipc_semaphore_get_value(int id);
17int sipc_semaphore_release(int id);
18
19int simpleipc_cmd(char *cmd, int id, int v);
20#ifdef __cplusplus
21}
22#endif
23#endif
Note: See TracBrowser for help on using the repository browser.