diff options
author | striker <striker@13f79535-47bb-0310-9956-ffa450edef68> | 2001-07-03 13:58:43 +0000 |
---|---|---|
committer | striker <striker@13f79535-47bb-0310-9956-ffa450edef68> | 2001-07-03 13:58:43 +0000 |
commit | aabe957bf08275769974ff81c4b9c0f2657bd727 (patch) | |
tree | 12c143151e4986a51ec07a47173c4c058c484148 /memory/unix/apr_sms_std.c | |
parent | 973b62315d848362b280f46733302a2eeb1b317a (diff) | |
download | libapr-aabe957bf08275769974ff81c4b9c0f2657bd727.tar.gz |
Second pass at implementing dynamic locking in the sms code.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61866 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory/unix/apr_sms_std.c')
-rw-r--r-- | memory/unix/apr_sms_std.c | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/memory/unix/apr_sms_std.c b/memory/unix/apr_sms_std.c index 628e0f1a3..44145c5ae 100644 --- a/memory/unix/apr_sms_std.c +++ b/memory/unix/apr_sms_std.c @@ -105,6 +105,20 @@ static apr_status_t apr_sms_std_free(apr_sms_t *sms, return APR_SUCCESS; } +#if APR_HAS_THREADS +static apr_status_t apr_sms_std_thread_register(apr_sms_t *sms, + apr_os_thread_t thread) +{ + return APR_SUCCESS; +} + +static apr_status_t apr_sms_std_thread_unregister(apr_sms_t *sms, + apr_os_thread_t thread) +{ + return APR_SUCCESS; +} +#endif /* APR_HAS_THREADS */ + APR_DECLARE(apr_status_t) apr_sms_std_create(apr_sms_t **sms) { apr_sms_t *new_sms; @@ -122,11 +136,15 @@ APR_DECLARE(apr_status_t) apr_sms_std_create(apr_sms_t **sms) if ((rv = apr_sms_init(new_sms, NULL)) != APR_SUCCESS) return rv; - new_sms->malloc_fn = apr_sms_std_malloc; - new_sms->calloc_fn = apr_sms_std_calloc; - new_sms->realloc_fn = apr_sms_std_realloc; - new_sms->free_fn = apr_sms_std_free; - new_sms->identity = module_identity; + new_sms->malloc_fn = apr_sms_std_malloc; + new_sms->calloc_fn = apr_sms_std_calloc; + new_sms->realloc_fn = apr_sms_std_realloc; + new_sms->free_fn = apr_sms_std_free; +#if APR_HAS_THREADS + new_sms->thread_register_fn = apr_sms_std_thread_register; + new_sms->thread_unregister_fn = apr_sms_std_thread_unregister; +#endif /* APR_HAS_THREADS */ + new_sms->identity = module_identity; /* as we're not a tracking memory module, i.e. we don't keep * track of our allocations, we don't have apr_sms_reset or |