Home
last modified time | relevance | path

Searched refs:threadlocal (Results 1 – 25 of 333) sorted by relevance

12345678910>>...14

/dports/net/nbdkit/nbdkit-1.20.4/server/
H A Dthreadlocal.c55 struct threadlocal { struct
69 struct threadlocal *threadlocal = threadlocalv; in free_threadlocal() argument
92 struct threadlocal *threadlocal; in threadlocal_new_server_thread() local
95 threadlocal = calloc (1, sizeof *threadlocal); in threadlocal_new_server_thread()
129 if (threadlocal) in threadlocal_set_instance_num()
138 if (!threadlocal) in threadlocal_get_name()
149 if (!threadlocal) in threadlocal_get_instance_num()
160 if (threadlocal) in threadlocal_set_error()
175 return threadlocal ? threadlocal->err : 0; in threadlocal_get_error()
218 if (threadlocal) in threadlocal_set_conn()
[all …]
/dports/security/tor/tor-0.4.6.8/src/lib/thread/
H A Dcompat_winthreads.c102 tor_threadlocal_init(tor_threadlocal_t *threadlocal) in tor_threadlocal_init() argument
104 threadlocal->index = TlsAlloc(); in tor_threadlocal_init()
105 return (threadlocal->index == TLS_OUT_OF_INDEXES) ? -1 : 0; in tor_threadlocal_init()
109 tor_threadlocal_destroy(tor_threadlocal_t *threadlocal) in tor_threadlocal_destroy() argument
111 TlsFree(threadlocal->index); in tor_threadlocal_destroy()
112 memset(threadlocal, 0, sizeof(tor_threadlocal_t)); in tor_threadlocal_destroy()
116 tor_threadlocal_get(tor_threadlocal_t *threadlocal) in tor_threadlocal_get() argument
118 void *value = TlsGetValue(threadlocal->index); in tor_threadlocal_get()
132 tor_threadlocal_set(tor_threadlocal_t *threadlocal, void *value) in tor_threadlocal_set() argument
134 BOOL ok = TlsSetValue(threadlocal->index, value); in tor_threadlocal_set()
H A Dcompat_pthreads.c227 tor_threadlocal_init(tor_threadlocal_t *threadlocal) in tor_threadlocal_init() argument
229 int err = pthread_key_create(&threadlocal->key, NULL); in tor_threadlocal_init()
234 tor_threadlocal_destroy(tor_threadlocal_t *threadlocal) in tor_threadlocal_destroy() argument
236 pthread_key_delete(threadlocal->key); in tor_threadlocal_destroy()
237 memset(threadlocal, 0, sizeof(tor_threadlocal_t)); in tor_threadlocal_destroy()
241 tor_threadlocal_get(tor_threadlocal_t *threadlocal) in tor_threadlocal_get() argument
243 return pthread_getspecific(threadlocal->key); in tor_threadlocal_get()
247 tor_threadlocal_set(tor_threadlocal_t *threadlocal, void *value) in tor_threadlocal_set() argument
249 int err = pthread_setspecific(threadlocal->key, value); in tor_threadlocal_set()
H A Dthreads.h76 int tor_threadlocal_init(tor_threadlocal_t *threadlocal);
80 void tor_threadlocal_destroy(tor_threadlocal_t *threadlocal);
87 void *tor_threadlocal_get(tor_threadlocal_t *threadlocal);
95 void tor_threadlocal_set(tor_threadlocal_t *threadlocal, void *value);
/dports/security/tor-devel/tor-0.4.7.2-alpha/src/lib/thread/
H A Dcompat_winthreads.c102 tor_threadlocal_init(tor_threadlocal_t *threadlocal) in tor_threadlocal_init() argument
104 threadlocal->index = TlsAlloc(); in tor_threadlocal_init()
105 return (threadlocal->index == TLS_OUT_OF_INDEXES) ? -1 : 0; in tor_threadlocal_init()
109 tor_threadlocal_destroy(tor_threadlocal_t *threadlocal) in tor_threadlocal_destroy() argument
111 TlsFree(threadlocal->index); in tor_threadlocal_destroy()
112 memset(threadlocal, 0, sizeof(tor_threadlocal_t)); in tor_threadlocal_destroy()
116 tor_threadlocal_get(tor_threadlocal_t *threadlocal) in tor_threadlocal_get() argument
118 void *value = TlsGetValue(threadlocal->index); in tor_threadlocal_get()
132 tor_threadlocal_set(tor_threadlocal_t *threadlocal, void *value) in tor_threadlocal_set() argument
134 BOOL ok = TlsSetValue(threadlocal->index, value); in tor_threadlocal_set()
H A Dcompat_pthreads.c227 tor_threadlocal_init(tor_threadlocal_t *threadlocal) in tor_threadlocal_init() argument
229 int err = pthread_key_create(&threadlocal->key, NULL); in tor_threadlocal_init()
234 tor_threadlocal_destroy(tor_threadlocal_t *threadlocal) in tor_threadlocal_destroy() argument
236 pthread_key_delete(threadlocal->key); in tor_threadlocal_destroy()
237 memset(threadlocal, 0, sizeof(tor_threadlocal_t)); in tor_threadlocal_destroy()
241 tor_threadlocal_get(tor_threadlocal_t *threadlocal) in tor_threadlocal_get() argument
243 return pthread_getspecific(threadlocal->key); in tor_threadlocal_get()
247 tor_threadlocal_set(tor_threadlocal_t *threadlocal, void *value) in tor_threadlocal_set() argument
249 int err = pthread_setspecific(threadlocal->key, value); in tor_threadlocal_set()
H A Dthreads.h76 int tor_threadlocal_init(tor_threadlocal_t *threadlocal);
80 void tor_threadlocal_destroy(tor_threadlocal_t *threadlocal);
87 void *tor_threadlocal_get(tor_threadlocal_t *threadlocal);
95 void tor_threadlocal_set(tor_threadlocal_t *threadlocal, void *value);
/dports/www/py-pyramid/pyramid-1.7.3/pyramid/tests/
H A Dtest_threadlocal.py12 from pyramid.threadlocal import ThreadLocalManager
51 from pyramid.threadlocal import get_current_request
59 from pyramid.threadlocal import manager
76 from pyramid.threadlocal import get_current_registry
80 from pyramid.threadlocal import manager
89 from pyramid.threadlocal import get_current_registry
H A Dtest_security.py123 from pyramid.threadlocal import get_current_registry
154 from pyramid.threadlocal import get_current_registry
198 from pyramid.threadlocal import get_current_registry
218 from pyramid.threadlocal import get_current_registry
235 from pyramid.threadlocal import get_current_registry
256 from pyramid.threadlocal import get_current_registry
309 from pyramid.threadlocal import get_current_registry
346 from pyramid.threadlocal import get_current_registry
384 from pyramid.threadlocal import get_current_registry
442 from pyramid.threadlocal import get_current_registry
/dports/textproc/nux/nux/src/nux/xom/pool/
H A DBuilderPool.java120 private final ThreadLocal threadlocal; field in BuilderPool
149 this.threadlocal = createThreadLocal(config.copy()); in BuilderPool()
166 Map entries = (Map) threadlocal.get(); in getBuilder()
190 Map entries = (Map) threadlocal.get(); in getDTDBuilder()
215 Map entries = (Map) threadlocal.get(); in getW3CBuilder()
243 Map entries = (Map) threadlocal.get(); in getMSVBuilder()
/dports/devel/upp/upp/bazaar/plugin/assimp/code/M3D/
H A DM3DWrapper.cpp54 # define threadlocal thread_local macro
57 # define threadlocal __declspec(thread) macro
59 # define threadlocal macro
66 threadlocal void *m3dimporter_pIOHandler;
/dports/security/seal/SEAL-3.7.2/native/src/seal/c/
H A Dmemorymanager.cpp51 MMProfThreadLocal *threadlocal = dynamic_cast<MMProfThreadLocal *>(profile); in CreateProfileCopy() local
52 if (nullptr != threadlocal) in CreateProfileCopy()
54 return GenericCreateProfileCopy(threadlocal, copyptr); in CreateProfileCopy()
143 MMProfThreadLocal *threadlocal = new MMProfThreadLocal(); in MMProf_CreateThreadLocal() local
144 *profile = threadlocal; in MMProf_CreateThreadLocal()
/dports/multimedia/assimp/assimp-5.1.3/code/AssetLib/M3D/
H A DM3DWrapper.cpp54 #define threadlocal thread_local macro
57 #define threadlocal __declspec(thread) macro
59 #define threadlocal macro
66 threadlocal void *m3dimporter_pIOHandler;
/dports/www/grails/grails-1.3.6/src/java/org/codehaus/groovy/grails/web/converters/configuration/
H A DConvertersConfigurationHolder.java89 …ThreadLocal<ConverterConfiguration> threadlocal = getInstance().threadLocalConfiguration.get(conve… in getThreadLocalForConverter() local
90 if (threadlocal == null && create) { in getThreadLocalForConverter()
91 threadlocal = new ThreadLocal<ConverterConfiguration>(); in getThreadLocalForConverter()
92 getInstance().threadLocalConfiguration.put(converter, threadlocal); in getThreadLocalForConverter()
94 return threadlocal; in getThreadLocalForConverter()
/dports/www/py-pyramid/pyramid-1.7.3/docs/api/
H A Dthreadlocal.rst3 :mod:`pyramid.threadlocal`
6 .. automodule:: pyramid.threadlocal
/dports/devel/py-structlog/structlog-18.2.0/docs/
H A Dthread-local.rst44 …ict-like class to make it usable for thread local storage: :func:`structlog.threadlocal.wrap_dict`.
50 >>> from structlog.threadlocal import wrap_dict
72 :func:`structlog.threadlocal.wrap_dict` returns always a completely *new* wrapped class:
76 >>> from structlog.threadlocal import wrap_dict
87 …og.threadlocal` comes with a `context manager <https://docs.python.org/2/library/stdtypes.html#con…
92 from structlog.threadlocal import tmp_bind, wrap_dict
110 If you want to detach a logger from thread local data, there's :func:`structlog.threadlocal.as_immu…
/dports/lang/zig/zig-0.9.0/test/behavior/bugs/
H A D7250.zig10 threadlocal var g_uart0 = nrfx_uart_t{
15 test "reference a global threadlocal variable" {
/dports/lang/zig-devel/zig-0.9.0/test/behavior/bugs/
H A D7250.zig10 threadlocal var g_uart0 = nrfx_uart_t{
15 test "reference a global threadlocal variable" {
/dports/devel/ice37/ice-3.7.2/scripts/
H A DLocalDriver.py16 def __init__(self, threadlocal, workers, continueOnFailure): argument
17 self.threadlocal = threadlocal
108 self.threadlocal.num = num
394 self.threadlocal = threading.local()
396 self.executor = Executor(self.threadlocal, self.workers, self.continueOnFailure)
617 return hasattr(self.threadlocal, "num")
629 baseport = 14000 + self.threadlocal.num * 100 if hasattr(self.threadlocal, "num") else 12010
638 if not process.isFromBinDir() and hasattr(self.threadlocal, "num"):
639 props["Test.BasePort"] = 14000 + self.threadlocal.num * 100
/dports/devel/php-ice37/ice-3.7.2/scripts/
H A DLocalDriver.py16 def __init__(self, threadlocal, workers, continueOnFailure): argument
17 self.threadlocal = threadlocal
108 self.threadlocal.num = num
394 self.threadlocal = threading.local()
396 self.executor = Executor(self.threadlocal, self.workers, self.continueOnFailure)
617 return hasattr(self.threadlocal, "num")
629 baseport = 14000 + self.threadlocal.num * 100 if hasattr(self.threadlocal, "num") else 12010
638 if not process.isFromBinDir() and hasattr(self.threadlocal, "num"):
639 props["Test.BasePort"] = 14000 + self.threadlocal.num * 100
/dports/devel/py-ice37/ice-3.7.2/scripts/
H A DLocalDriver.py16 def __init__(self, threadlocal, workers, continueOnFailure): argument
17 self.threadlocal = threadlocal
108 self.threadlocal.num = num
394 self.threadlocal = threading.local()
396 self.executor = Executor(self.threadlocal, self.workers, self.continueOnFailure)
617 return hasattr(self.threadlocal, "num")
629 baseport = 14000 + self.threadlocal.num * 100 if hasattr(self.threadlocal, "num") else 12010
638 if not process.isFromBinDir() and hasattr(self.threadlocal, "num"):
639 props["Test.BasePort"] = 14000 + self.threadlocal.num * 100
/dports/www/py-pyramid/pyramid-1.7.3/docs/narr/
H A Dthreadlocals.rst36 :func:`pyramid.threadlocal.get_current_registry` function to retrieve the
43 :func:`~pyramid.threadlocal.get_current_request` and
44 :func:`~pyramid.threadlocal.get_current_registry`. The former returns the
74 These functions push and pop the threadlocal stack when the system is under
83 :func:`~pyramid.threadlocal.get_current_request` function to always return
85 :func:`~pyramid.threadlocal.get_current_registry` function to return exactly
92 :func:`~pyramid.threadlocal.get_current_request` or
93 :func:`~pyramid.threadlocal.get_current_registry` functions, except perhaps in
125 Use of the :func:`~pyramid.threadlocal.get_current_request` function in
140 Use of the :func:`~pyramid.threadlocal.get_current_registry` function should be
/dports/net-im/py-matrix-synapse/synapse-1.50.2/synapse/config/
H A Dlogger.py249 threadlocal = threading.local()
266 if getattr(threadlocal, "active", False):
278 threadlocal.active = True
281 threadlocal.active = False
/dports/databases/py-dbutils/DBUtils-2.0/dbutils/
H A Dpersistent_pg.py128 closeable=False, threadlocal=None, *args, **kwargs): argument
149 self.thread = (threadlocal or local)()
/dports/math/R-cran-nloptr/nloptr/src/nlopt_src/m4/
H A Dax_c_threadlocal.m42 dnl @summary determine C keyword for threadlocal storage
21 [AC_ARG_WITH(threadlocal,
22 [AC_HELP_STRING([--without-threadlocal], [no thread-local storage keyword])],

12345678910>>...14