Qore Programming Language Reference Manual  0.8.12.3
ql_thread.dox.h
1 
3 namespace Qore {
8 
10 
20 nothing delete_all_thread_data();
21 
23 
37 nothing delete_thread_data( ...);
38 
40 
54 nothing delete_thread_data(list l);
55 
57 
71 
73 
98 
100 
116 
118 
133 any get_thread_data(string key);
134 
136 
143 nothing get_thread_data();
144 
146 
164 *TimeZone get_thread_tz();
165 
167 
182 int gettid();
183 
185 
217 nothing mark_thread_resources();
218 
220 
235 int num_threads();
236 
238 
252 *hash remove_thread_data( ...);
253 
255 
270 
272 
294 bool remove_thread_resource(AbstractThreadResource resource);
295 
297 
319 bool remove_thread_resource(code resource);
320 
322 
334 nothing save_thread_data(hash h);
335 
337 
350 nothing save_thread_data(string key, any value);
351 
353 
360 nothing save_thread_data();
361 
363 
377 bool set_thread_init(code init);
378 
380 
400 nothing set_thread_resource(AbstractThreadResource resource);
401 
403 
424 nothing set_thread_resource(code resource, any arg);
425 
427 
449 nothing set_thread_tz(TimeZone zone);
450 
452 
470 nothing set_thread_tz();
471 
473 
490 list thread_list();
491 
493 
517 
519 
551 
553 
589 
591 };
bool remove_thread_resource(AbstractThreadResource resource)
removes a thread resource from the current thread
nothing mark_thread_resources()
Marks thread resources so that any thread resources left allocated after this call will be cleaned up...
nothing throwThreadResourceExceptions()
Immediately runs all thread resource cleanup routines for the current thread and throws all associate...
nothing set_thread_tz(TimeZone zone)
Sets the default time zone for the current thread.
nothing delete_all_thread_data()
Deletes all keys in the thread-local data hash.
hash getAllThreadCallStacks()
Returns a hash of call stacks keyed by each TID (thread ID)
list thread_list()
Returns a list of all current thread IDs.
nothing save_thread_data(hash h)
Saves the data passed in the thread-local hash; all keys are merged into the thread-local hash...
*hash remove_thread_data(...)
Removes the data associated to one or more keys in the thread-local data hash and returns the data re...
list list(...)
Returns a list of the arguments passed at the top level.
int num_threads()
Returns the current number of threads in the process (not including the special signal handling threa...
nothing throw_thread_resource_exceptions()
Immediately runs all thread resource cleanup routines for the current thread and throws all associate...
hash get_all_thread_call_stacks()
Returns a hash of call stacks keyed by each TID (thread ID)
any get_thread_data(string key)
Returns the value of the thread-local data attached to the key passed.
nothing delete_thread_data(...)
Deletes the data associated to one or more keys in the thread-local data hash; if the data is an obje...
int gettid()
Returns the Qore thread ID (TID) of the current thread.
hash get_all_thread_data()
Returns the entire thread-local data hash.
bool throw_thread_resource_exceptions_to_mark()
Immediately runs all thread resource cleanup routines for the current thread for thread resources cre...
nothing set_thread_resource(AbstractThreadResource resource)
sets a thread resource for the current thread
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
hash hash(object obj)
Returns a hash of an object's members.
*TimeZone get_thread_tz()
Returns any TimeZone set for the current thread, NOTHING if none is set.
bool set_thread_init(code init)
Sets a call reference or closure to run every time a new thread is started.