X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=bindings-apr.git;a=blobdiff_plain;f=cbits%2Fhelper_apr_global_mutex.c;fp=cbits%2Fhelper_apr_global_mutex.c;h=833b33063f647c9d2af16e075f3456cc5d05a4d5;hp=0000000000000000000000000000000000000000;hb=7c98f6e99621867364357f69f9034a559999b324;hpb=ba73375413bf799c040db1d874257af42f0179fd diff --git a/cbits/helper_apr_global_mutex.c b/cbits/helper_apr_global_mutex.c new file mode 100644 index 0000000..833b330 --- /dev/null +++ b/cbits/helper_apr_global_mutex.c @@ -0,0 +1,11 @@ +#include +#include + +BC_INLINE4(apr_global_mutex_create , apr_global_mutex_t**, const char*, apr_lockmech_e, apr_pool_t*, apr_status_t) +BC_INLINE3(apr_global_mutex_child_init, apr_global_mutex_t**, const char*, apr_pool_t*, apr_status_t) +BC_INLINE1(apr_global_mutex_lock , apr_global_mutex_t*, apr_status_t) +BC_INLINE1(apr_global_mutex_trylock , apr_global_mutex_t*, apr_status_t) +BC_INLINE1(apr_global_mutex_unlock , apr_global_mutex_t*, apr_status_t) +BC_INLINE1(apr_global_mutex_destroy , apr_global_mutex_t*, apr_status_t) + +BC_INLINE1(apr_global_mutex_pool_get , apr_global_mutex_t*, apr_pool_t*)