disabled
      9ˆ¾‘äÇò 8à
2:W$�Ñÿ?äƒh¹ã¿æ      9disabled
     ;ˆßÞã517Ý¿æ     ;‹      µTM�Ú0½ï¯˜úÐá«*ë¸Ú¤¢²€ØTUUõ`bC¬qäRúëë*Ò
Z¶Ý^2Žóæå½ñxè‹`6?ÍGð.¼ŸÀüÃÛÉx¤�ø±3DÂ úÐm¶<ÄÑ” ‰­ÍˆEQ4‹NS›5†Œí&ébn�ŠlSXAØ-÷ØÐXrá"P«l"Ù8ò+è ÞÚ\	éòö9
¹Ã(æ»¯ƒùvé6­Ü µû^‹b•ëØðHG—ZìË¿xÉè¢øò@\.£6†OÔ:õ‰ÕaTmÖ�›È'¨"�æ¸LxúØ\«žXŸ|g_m\f3Ê!6rå“7Cz;óÂ¦|#)òó˜{‡¹#lÂs-ÔJIqüP�Ô·Ë„A…	d•Y¥Ó�ÅºÕH'yÆ�×žs›:ª‚ˆ?UƒG?c~·MÃ`¼¨J"JŠ“ºëÎ‡°972µ(##«Íþh b{™.óìöÇ+åµŽ-a 8‹|‚§mú˜ê"­Ûr%;kÈY Ì=êQÔnµûÏk´;ÐêÚm€@wÅÞÿ«ô•N„4uå—Ž"Ó…4®ÔU¼RoÐó.êŽÒ_¯¿Þ.§õ>¼×à½´úÿÕÇZh+w®×	«âsø}#]yûñ8)æ,Åjš�¦ <0    W   =ˆl–Ãa¾”Ò~êq@µpLÜmõ1hß�þBó�,ã€�¹K‘È@?åƒpM5ä_ˆI|¥�+y,a–Ðz¾”*i?u8 ¸!\e•1hßé d    =/*
   +----------------------------------------------------------------------+
   | Thread Safe Resource Manager                                         |
   +----------------------------------------------------------------------+
   | Copyright (c) 1999-2011, Andi Gutmans, Sascha Schumann, Zeev Suraski |
   | This source file is subject to the TSRM license, that is bundled     |
   | with this package in the file LICENSE                                |
   +----------------------------------------------------------------------+
   | Authors:  Zeev Suraski <zeev@php.net>                                |
   +----------------------------------------------------------------------+
*/

#ifndef TSRM_H
#define TSRM_H

#if !defined(__CYGWIN__) && defined(WIN32)
# define TSRM_WIN32
# include "tsrm_config.w32.h"
#else
# include <tsrm_config.h>
#endif

#include "main/php_stdint.h"

#ifdef TSRM_WIN32
#	ifdef TSRM_EXPORTS
#		define TSRM_API __declspec(dllexport)
#	else
#		define TSRM_API __declspec(dllimport)
#	endif
#elif defined(__GNUC__) && __GNUC__ >= 4
#	define TSRM_API __attribute__ ((visibility("default")))
#else
#	define TSRM_API
#endif

typedef intptr_t tsrm_intptr_t;
typedef uintptr_t tsrm_uintptr_t;

/* Only compile multi-threading functions if we're in ZTS mode */
#ifdef ZTS

#ifdef TSRM_WIN32
# ifndef TSRM_INCLUDE_FULL_WINDOWS_HEADERS
#  define WIN32_LEAN_AND_MEAN
# endif
# include <windows.h>
# include <shellapi.h>
#elif defined(GNUPTH)
# include <pth.h>
#elif defined(PTHREADS)
# include <pthread.h>
#elif defined(TSRM_ST)
# include <st.h>
#elif defined(BETHREADS)
#include <kernel/OS.h>
#include <TLS.h>
#endif

typedef int ts_rsrc_id;

/* Define THREAD_T and MUTEX_T */
#ifdef TSRM_WIN32
# define THREAD_T DWORD
# define MUTEX_T CRITICAL_SECTION *
#elif defined(GNUPTH)
# define THREAD_T pth_t
# define MUTEX_T pth_mutex_t *
#elif defined(PTHREADS)
# define THREAD_T pthread_t
# define MUTEX_T pthread_mutex_t *
#elif defined(TSRM_ST)
# define THREAD_T st_thread_t
# define MUTEX_T st_mutex_t
#endif

#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif

typedef void (*ts_allocate_ctor)(void *);
typedef void (*ts_allocate_dtor)(void *);

#define THREAD_HASH_OF(thr,ts)  (unsigned long)thr%(unsigned long)ts

#ifdef __cplusplus
extern "C" {
#endif

/* startup/shutdown */
TSRM_API int tsrm_startup(int expected_threads, int expected_resources, int debug_level, char *debug_filename);
TSRM_API void tsrm_shutdown(void);

/* 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);

/* fetches the requested resource for the current thread */
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);

/* frees all resources allocated for all threads except current */
void ts_free_worker_threads(void);

/* deallocates all occurrences of a given id */
TSRM_API void ts_free_id(ts_rsrc_id id);


/* Debug support */
#define TSRM_ERROR_LEVEL_ERROR	1
#define TSRM_ERROR_LEVEL_CORE	2
#define TSRM_ERROR_LEVEL_INFO	3

typedef void (*tsrm_thread_begin_func_t)(THREAD_T thread_id);
typedef void (*tsrm_thread_end_func_t)(THREAD_T thread_id);
typedef void (*tsrm_shutdown_func_t)(void);


TSRM_API int tsr