Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
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
79 hash getAllThreadCallStacks();
80
82
95 hash get_all_thread_data();
96
98
111 any get_thread_data(string key);
112
114
121 nothing get_thread_data();
122
124
142 *TimeZone get_thread_tz();
143
145
158 int gettid();
159
161
187 nothing mark_thread_resources();
188
190
203 int num_threads();
204
206
220 *hash remove_thread_data( ...);
221
223
237 hash remove_thread_data(list l);
238
240
252 nothing save_thread_data(hash h);
253
255
268 nothing save_thread_data(string key, any value);
269
271
278 nothing save_thread_data();
279
281
295 bool set_thread_init(code init);
296
298
320 nothing set_thread_tz(TimeZone zone);
321
323
341 nothing set_thread_tz();
342
344
359 list thread_list();
360
362
383 nothing throwThreadResourceExceptions();
384
386
413 bool throw_thread_resource_exceptions_to_mark();
414
416 };
Qore::mark_thread_resources
nothing mark_thread_resources()
Marks thread resources so that any thread resources left allocated after this call will be cleaned up...
Qore::throwThreadResourceExceptions
nothing throwThreadResourceExceptions()
Immediately runs all thread resource cleanup routines for the current thread and throws all associate...
Qore::set_thread_tz
nothing set_thread_tz(TimeZone zone)
Sets the default time zone for the current thread.
Qore::delete_all_thread_data
nothing delete_all_thread_data()
Deletes all keys in the thread-local data hash.
Qore::getAllThreadCallStacks
hash getAllThreadCallStacks()
Returns a hash of call stacks keyed by each TID (thread ID)
Qore::thread_list
list thread_list()
Returns a list of all current thread IDs.
Qore::save_thread_data
nothing save_thread_data(hash h)
Saves the data passed in the thread-local hash; all keys are merged into the thread-local hash...
Qore::remove_thread_data
*hash remove_thread_data(...)
Removes the data associated to one or more keys in the thread-local data hash and returns the data re...
Qore::list
list list(...)
Returns a list of the arguments passed at the top level.
Qore::num_threads
int num_threads()
Returns the current number of threads in the process (not including the special signal handling threa...
Qore::get_thread_data
any get_thread_data(string key)
Returns the value of the thread-local data attached to the key passed.
Qore::delete_thread_data
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...
Qore::gettid
int gettid()
Returns the Qore thread ID (TID) of the current thread.
Qore::get_all_thread_data
hash get_all_thread_data()
Returns the entire thread-local data hash.
Qore::throw_thread_resource_exceptions_to_mark
bool throw_thread_resource_exceptions_to_mark()
Immediately runs all thread resource cleanup routines for the current thread for thread resources cre...
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::get_thread_tz
*TimeZone get_thread_tz()
Returns any TimeZone set for the current thread, NOTHING if none is set.
Qore::set_thread_init
bool set_thread_init(code init)
Sets a call reference or closure to run every time a new thread is started.