MeVisLab Toolbox Reference
DCMTree_ThreadSupport.h File Reference
#include <process.h>
#include <windows.h>
#include <winbase.h>
#include "DCMTree_Defines.h"

Go to the source code of this file.

Classes

class  DCMTree_Utils::thread_scoped_criticalsection
 Class to manage thread specific critical sections. More...
 

Namespaces

namespace  DCMTree_Utils
 dictionary class to provide dicom-meta information
 

Macros

#define NOMINMAX
 
#define thread_modifier   __stdcall
 

Typedefs

typedef voidDCMTree_Utils::thread_parameter
 System dependent types and definitions.
 
typedef unsigned int DCMTree_Utils::thread_result
 
typedef HANDLE DCMTree_Utils::thread_id
 
typedef thread_result(thread_modifierDCMTree_Utils::thread_function) (thread_parameter)
 
typedef CRITICAL_SECTION DCMTree_Utils::thread_criticalsection
 

Functions

thread_id DCMTREE_EXPORT DCMTree_Utils::thread_start (thread_function func, thread_parameter param)
 Start func as a new thread, param as parameter (void-pointer :) )
 
void DCMTREE_EXPORT DCMTree_Utils::thread_await (thread_id id)
 Wait for a thread to complete its work.
 
bool DCMTREE_EXPORT DCMTree_Utils::thread_running (thread_id id)
 Test if a thread is running.
 
void DCMTREE_EXPORT DCMTree_Utils::thread_initcriticalsection (thread_criticalsection &cs)
 Prepare a critical section for further usage.
 
void DCMTREE_EXPORT DCMTree_Utils::thread_entercriticalsection (thread_criticalsection &cs)
 Enter a critical section.
 
void DCMTREE_EXPORT DCMTree_Utils::thread_leavecriticalsection (thread_criticalsection &cs)
 Leave a critical section.
 
void DCMTREE_EXPORT DCMTree_Utils::thread_destroycriticalsection (thread_criticalsection &cs)
 Destroy a critical section.
 

Macro Definition Documentation

◆ NOMINMAX

#define NOMINMAX

Definition at line 18 of file DCMTree_ThreadSupport.h.

◆ thread_modifier

#define thread_modifier   __stdcall

Definition at line 38 of file DCMTree_ThreadSupport.h.