13#ifndef DCM_TREE_THREAD_SUPPORT_H
14#define DCM_TREE_THREAD_SUPPORT_H
38 #define thread_modifier __stdcall
44 #define thread_modifier
Class to manage thread specific critical sections.
thread_scoped_criticalsection(thread_criticalsection &cs)
~thread_scoped_criticalsection()
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
dictionary class to provide dicom-meta information
void * thread_parameter
System dependent types and definitions.
void DCMTREE_EXPORT thread_initcriticalsection(thread_criticalsection &cs)
Prepare a critical section for further usage.
thread_id DCMTREE_EXPORT thread_start(thread_function func, thread_parameter param)
Start func as a new thread, param as parameter (void-pointer :) )
void DCMTREE_EXPORT thread_destroycriticalsection(thread_criticalsection &cs)
Destroy a critical section.
thread_result(thread_modifier * thread_function)(thread_parameter)
unsigned int thread_result
void DCMTREE_EXPORT thread_await(thread_id id)
Wait for a thread to complete its work.
void DCMTREE_EXPORT thread_entercriticalsection(thread_criticalsection &cs)
Enter a critical section.
CRITICAL_SECTION thread_criticalsection
void DCMTREE_EXPORT thread_leavecriticalsection(thread_criticalsection &cs)
Leave a critical section.
bool DCMTREE_EXPORT thread_running(thread_id id)
Test if a thread is running.