From 33f94999756591d98d9061105496e7255e4f43da Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Fri, 16 Jun 2000 14:38:05 +0000 Subject: Make it possible to access other threads' local storage. Only use it if you have a clear knowledge of what you're doing! --- TSRM/TSRM.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'TSRM/TSRM.h') diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h index 4d2a2c2595..86e51a793f 100644 --- a/TSRM/TSRM.h +++ b/TSRM/TSRM.h @@ -81,7 +81,8 @@ TSRM_API void tsrm_shutdown(void); TSRM_API ts_rsrc_id ts_allocate_id(size_t size, ts_allocate_ctor ctor, ts_allocate_dtor dtor); /* fetches the requested resource for the current thread */ -TSRM_API void *ts_resource(ts_rsrc_id id); +TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id); +#define ts_resource(id) ts_resource_ex(id, NULL) /* frees all resources allocated for the current thread */ TSRM_API void ts_free_thread(void); -- cgit v1.2.1