~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to system/include/libc/sys/lock.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SYS_LOCK_H__
 
2
#define __SYS_LOCK_H__
 
3
 
 
4
/* dummy lock routines for single-threaded aps */
 
5
 
 
6
typedef int _LOCK_T;
 
7
typedef int _LOCK_RECURSIVE_T;
 
8
 
 
9
#include <_ansi.h>
 
10
 
 
11
#define __LOCK_INIT(class,lock) static int lock = 0;
 
12
#define __LOCK_INIT_RECURSIVE(class,lock) static int lock = 0;
 
13
#define __lock_init(lock) (_CAST_VOID 0)
 
14
#define __lock_init_recursive(lock) (_CAST_VOID 0)
 
15
#define __lock_close(lock) (_CAST_VOID 0)
 
16
#define __lock_close_recursive(lock) (_CAST_VOID 0)
 
17
#define __lock_acquire(lock) (_CAST_VOID 0)
 
18
#define __lock_acquire_recursive(lock) (_CAST_VOID 0)
 
19
#define __lock_try_acquire(lock) (_CAST_VOID 0)
 
20
#define __lock_try_acquire_recursive(lock) (_CAST_VOID 0)
 
21
#define __lock_release(lock) (_CAST_VOID 0)
 
22
#define __lock_release_recursive(lock) (_CAST_VOID 0)
 
23
 
 
24
#endif /* __SYS_LOCK_H__ */