]> git.lizzy.rs Git - plan9front.git/blob - sys/include/ape/lock.h
libsec: implement elliptic curve group operations in jacobian coordinate system
[plan9front.git] / sys / include / ape / lock.h
1 #if !defined(_RESEARCH_SOURCE) && !defined(_PLAN9_SOURCE)
2    This header file is an extension of ANSI/POSIX
3 #endif
4
5 #ifndef __LOCK_H
6 #define __LOCK_H
7 #pragma lib "/$M/lib/ape/libap.a"
8
9 #include <u.h>
10
11 typedef struct
12 {
13         int     val;
14 } Lock;
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 extern  void    lock(Lock*);
21 extern  void    unlock(Lock*);
22 extern  int     canlock(Lock*);
23 extern  int     tas(int*);
24
25 #ifdef __cplusplus
26 }
27 #endif
28
29 #endif