summaryrefslogtreecommitdiff
path: root/TSRM/TSRM.h
diff options
context:
space:
mode:
Diffstat (limited to 'TSRM/TSRM.h')
-rw-r--r--TSRM/TSRM.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h
index 54b3ce1214..db4b970bf6 100644
--- a/TSRM/TSRM.h
+++ b/TSRM/TSRM.h
@@ -83,8 +83,8 @@ TSRM_API int tsrm_startup(int expected_threads, int expected_resources, int debu
TSRM_API void tsrm_shutdown(void);
/* environ lock API */
-TSRM_API int tsrm_env_lock();
-TSRM_API int tsrm_env_unlock();
+TSRM_API void tsrm_env_lock();
+TSRM_API void tsrm_env_unlock();
/* allocates a new thread-safe-resource id */
TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate_ctor ctor, ts_allocate_dtor dtor);
@@ -178,8 +178,8 @@ TSRM_API const char *tsrm_api_name(void);
#else /* non ZTS */
-#define tsrm_env_lock() 0
-#define tsrm_env_unlock() 0
+#define tsrm_env_lock()
+#define tsrm_env_unlock()
#define TSRMG_STATIC(id, type, element)
#define TSRMLS_CACHE_EXTERN()