DCL 3.7.4
Loading...
Searching...
No Matches
Thread.cpp File Reference
#include <dcl/Config.h>
#include <sys/ioctl.h>
#include <sys/poll.h>
#include <sys/time.h>
#include <unistd.h>
#include <dcl/Exception.h>
#include <dcl/Thread.h>

Go to the source code of this file.

Macros

#define __LOCK_COUNT   7

Functions

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO (Thread, Object) String Thread
void __initializeThreadEnvironment ()
void __cleanupThreadEnvironment ()

Macro Definition Documentation

◆ __LOCK_COUNT

#define __LOCK_COUNT   7

Definition at line 266 of file Thread.cpp.

Function Documentation

◆ __cleanupThreadEnvironment()

void __cleanupThreadEnvironment ( )

Definition at line 347 of file Thread.cpp.

348{
349 __key_delete(__keySelfThread);
350
351 for (int i = 0; i < __LOCK_COUNT; i++)
352 __destroy(__lock[i]);
353}
#define __LOCK_COUNT
Definition Thread.cpp:266

◆ __initializeThreadEnvironment()

void __initializeThreadEnvironment ( )

Definition at line 339 of file Thread.cpp.

340{
341 __key_create(__keySelfThread);
342
343 for (int i = 0; i < __LOCK_COUNT; i++)
344 __init(__lock[i]);
345}

◆ IMPLEMENT_CLASSINFO()

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO ( Thread ,
Object  )

Definition at line 31 of file Thread.cpp.

34{
35 StringBuilder r = className() + __T(":");
36 if (__name.isEmpty())
37 r += __T("(noname)");
38 return r;
39}
40
41Thread::Thread(const char_t* _name /*= NULL*/)
42{
43#ifdef __WINNT__
44 __hThread = NULL;
45#endif
46
47 __threadId = 0;
48 if (_name)
49 __name = _name;
50}
#define NULL
Definition Config.h:312
wchar_t char_t
Definition Config.h:247
IOException *size_t r
Definition MediaInfo.cpp:82
#define __T(str)
Definition Object.h:60