source: trunk/src/win32k/include/locks.h@ 5120

Last change on this file since 5120 was 5087, checked in by bird, 25 years ago

Non-blocking spin R/W locks.

File size: 562 bytes
Line 
1/* $Id: locks.h,v 1.1 2001-02-10 11:15:41 bird Exp $
2 *
3 * R/W spinlocks.
4 *
5 * Copyright (c) 2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
6 *
7 * Project Odin Software License can be found in LICENSE.TXT
8 *
9 */
10/*NOINC*/
11#ifndef _LOCKS_H_
12#define _LOCKS_H_
13/*INC*/
14
15typedef unsigned long RWLOCK;
16typedef RWLOCK * PRWLOCK;
17
18APIRET _Optlink RWLockAcquireRead(PRWLOCK pLock);
19APIRET _Optlink RWLockReleaseRead(PRWLOCK pLock);
20APIRET _Optlink RWLockAcquireWrite(PRWLOCK pLock);
21APIRET _Optlink RWLockReleaseWrite(PRWLOCK pLock);
22
23/*NOINC*/
24#endif
25/*INC*/
26
Note: See TracBrowser for help on using the repository browser.