MeVisLabToolboxReference
|
Thread support library for DCMTree. More...
#include <process.h>
#include <winsock2.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 | |
Defines | |
#define | NOMINMAX |
#define | thread_modifier __stdcall |
Typedefs | |
typedef void * | DCMTree_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_modifier * | DCMTree_Utils::thread_function )(thread_parameter) |
typedef CRITICAL_SECTION | DCMTree_Utils::thread_criticalsection |
typedef HANDLE | DCMTree_Utils::thread_semaphore |
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. | |
void DCMTREE_EXPORT | DCMTree_Utils::thread_initsemaphore (thread_semaphore &s, int initcount=0) |
Initializes a semaphore. | |
void DCMTREE_EXPORT | DCMTree_Utils::thread_destroysemaphore (thread_semaphore &s) |
Destroys a semaphore. | |
void DCMTREE_EXPORT | DCMTree_Utils::thread_waitsemaphore (thread_semaphore &s) |
Wait for a resource to be freed. | |
bool DCMTREE_EXPORT | DCMTree_Utils::thread_waitsemaphore (thread_semaphore &s, unsigned long timeout) |
Wait for a resource to be freed. | |
void DCMTREE_EXPORT | DCMTree_Utils::thread_postsemaphore (thread_semaphore &s) |
Free a resource. |
#define NOMINMAX |
Definition at line 17 of file DCMTree_ThreadSupport.h.
#define thread_modifier __stdcall |
Definition at line 46 of file DCMTree_ThreadSupport.h.