ReactOS 0.4.15-dev-7942-gd23573b
mtdll.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2002, TransGaming Technologies Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#ifndef __CRT_INTERNAL_WINE_MTDLL_H
20#define __CRT_INTERNAL_WINE_MTDLL_H
21
22#if defined(_MT)
23
24#define _mlock(locknum) _lock(locknum)
25#define _munlock(locknum) _unlock(locknum)
26
27void _unlock( int locknum );
28void _lock( int locknum );
29
30#else
31
32#define _mlock(locknum) do {} while(0)
33#define _munlock(locknum) do {} while(0)
34
35#endif
36
37
38#define _SIGNAL_LOCK 1
39#define _IOB_SCAN_LOCK 2
40#define _TMPNAM_LOCK 3
41#define _INPUT_LOCK 4
42#define _OUTPUT_LOCK 5
43#define _CSCANF_LOCK 6
44#define _CPRINTF_LOCK 7
45#define _CONIO_LOCK 8
46#define _HEAP_LOCK 9
47#define _BHEAP_LOCK 10 /* No longer used? */
48#define _TIME_LOCK 11
49#define _ENV_LOCK 12
50#define _EXIT_LOCK1 13
51#define _EXIT_LOCK2 14
52#define _THREADDATA_LOCK 15 /* No longer used? */
53#define _POPEN_LOCK 16
54#define _LOCKTAB_LOCK 17
55#define _OSFHND_LOCK 18
56#define _SETLOCALE_LOCK 19
57#define _LC_COLLATE_LOCK 20 /* No longer used? */
58#define _LC_CTYPE_LOCK 21 /* No longer used? */
59#define _LC_MONETARY_LOCK 22 /* No longer used? */
60#define _LC_NUMERIC_LOCK 23 /* No longer used? */
61#define _LC_TIME_LOCK 24 /* No longer used? */
62#define _MB_CP_LOCK 25
63#define _NLG_LOCK 26
64#define _TYPEINFO_LOCK 27
65#define _STREAM_LOCKS 28
66
67/* Must match definition in msvcrt/stdio.h */
68#define _IOB_ENTRIES 20
69#define _LAST_STREAM_LOCK (_STREAM_LOCKS+_IOB_ENTRIES-1)
70#define _TOTAL_LOCKS (_LAST_STREAM_LOCK+1)
71
72#endif /* WINE_MTDLL_H */
void _unlock(int locknum)
Definition: lock.c:126
void _lock(int locknum)
Definition: lock.c:97