Forward compatibility: build relative-base link libraries where needed
[AROS.git] / arch / all-hosted / hostlib / lock.c
blobf84d8b488530cb0edb72af984d4c84568cc68f81
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/libcall.h>
7 #include <proto/exec.h>
9 #include "hostlib_intern.h"
11 /*****************************************************************************
13 NAME */
14 #include <proto/hostlib.h>
16 AROS_LH0(void, HostLib_Lock,
18 /* SYNOPSIS */
20 /* LOCATION */
21 struct HostLibBase *, HostLibBase, 7, HostLib)
23 /* FUNCTION
24 Acquire global host OS call semaphore.
26 INPUTS
27 None.
29 RESULT
30 None.
32 NOTES
33 Host OS calls are typically not reentrant. You have to
34 call this function before you may use any host OS API.
35 Use HostLib_Unlock() function when you're done with it.
37 This function has negative impact on AROS multitasking, so
38 use it gently.
40 EXAMPLE
42 BUGS
44 SEE ALSO
45 HostLib_Unlock()
47 INTERNALS
48 The actual implementation of this function depends on
49 the host OS. Do not assume anything particular about it.
50 For example under Windows it's Forbid(), not a semaphore.
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 HOSTLIB_LOCK();
58 AROS_LIBFUNC_EXIT