summaryrefslogtreecommitdiff
path: root/db-4.8.30/mod_db4/sem_utils.h
blob: e98613c8993b49a01dde6510e111b18e5faa82a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*-
 * Copyright (c) 2004-2009 Oracle.  All rights reserved.
 *
 * http://www.apache.org/licenses/LICENSE-2.0.txt
 * 
 * authors: George Schlossnagle <george@omniti.com>
 */

#ifndef MOD_DB4_SEM_UTILS_H
#define MOD_DB4_SEM_UTILS_H

extern int md4_sem_create(int semnum, unsigned short *start);
extern void md4_sem_destroy(int semid);
extern void md4_sem_lock(int semid, int semnum);
extern void md4_sem_unlock(int semid, int semnum);
extern void md4_sem_wait_for_zero(int semid, int semnum);
extern void md4_sem_set(int semid, int semnum, int value);
extern int md4_sem_get(int semid, int semnum);

/* vim: set ts=4 sts=4 expandtab bs=2 ai : */
#endif