11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
*
* Alternatively, it may be distributed under the terms of the GNU General
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#ifdef OF_AMIGAOS4
# define __USE_INLINE__
# define __NOLIBBASE__
# define __NOGLOBALIFACE__
#endif
#include <proto/exec.h>
#ifdef OF_AMIGAOS4
extern struct ExecIFace *IExec;
#endif
bool
of_mutex_new(of_mutex_t *mutex)
{
InitSemaphore(mutex);
return true;
}
|
<
<
<
<
<
<
<
<
<
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
*
* Alternatively, it may be distributed under the terms of the GNU General
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include <proto/exec.h>
bool
of_mutex_new(of_mutex_t *mutex)
{
InitSemaphore(mutex);
return true;
}
|