4 Copyright (c) 2008 Sven Peter <svpe@gmx.net>
6 Redistribution and use in source and binary forms, with or without modification,
7 are permitted provided that the following conditions are met:
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11 2. Redistributions in binary form must reproduce the above copyright notice,
12 this list of conditions and the following disclaimer in the documentation and/or
13 other materials provided with the distribution.
14 3. The name of the author may not be used to endorse or promote products derived
15 from this software without specific prior written permission.
17 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
18 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
19 AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
20 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
25 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 static inline void _FAT_lock_init(mutex_t
*mutex
)
38 LWP_MutexInit(mutex
, false);
41 static inline void _FAT_lock_deinit(mutex_t
*mutex
)
43 LWP_MutexDestroy(*mutex
);
46 static inline void _FAT_lock(mutex_t
*mutex
)
48 LWP_MutexLock(*mutex
);
51 static inline void _FAT_unlock(mutex_t
*mutex
)
53 LWP_MutexUnlock(*mutex
);
58 // We still need a blank lock type
63 void _FAT_lock_init(mutex_t
*mutex
);
64 void _FAT_lock_deinit(mutex_t
*mutex
);
65 void _FAT_lock(mutex_t
*mutex
);
66 void _FAT_unlock(mutex_t
*mutex
);
68 #endif // USE_LWP_LOCK