mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 00:48:39 +01:00
Replace tabs with spaces in more files.
--HG-- branch : trunk
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
namespace ZThread {
|
||||
|
||||
class ThreadImpl;
|
||||
|
||||
|
||||
/**
|
||||
* @class ThreadQueue
|
||||
* @version 2.3.0
|
||||
@@ -41,7 +41,7 @@ namespace ZThread {
|
||||
* A ThreadQueue accumulates references to user and reference threads.
|
||||
* These are threads that are running outside the scope of the Thread
|
||||
* object that created them. ZThreads doesn't have a central manager for
|
||||
* all threads (partly why I renamed the ThreadManager to someting more
|
||||
* all threads (partly why I renamed the ThreadManager to someting more
|
||||
* appropriate). Instead, ZThreads will discover threads it did not create
|
||||
* and create a reference thread that allows ZThreads to interact with it.
|
||||
* Non user threads that are created by the user never have to touch the
|
||||
@@ -56,19 +56,19 @@ namespace ZThread {
|
||||
ThreadList _pendingThreads;
|
||||
ThreadList _referenceThreads;
|
||||
ThreadList _userThreads;
|
||||
|
||||
|
||||
//! Shutdown handlers
|
||||
TaskList _shutdownTasks;
|
||||
|
||||
//! Serilize access to the thread list
|
||||
FastLock _lock;
|
||||
|
||||
|
||||
//! Reference thread waiting to cleanup any user & reference threads
|
||||
ThreadImpl* _waiter;
|
||||
|
||||
public:
|
||||
|
||||
ThreadQueue();
|
||||
ThreadQueue();
|
||||
|
||||
/**
|
||||
* The thread destroys a ThreadQueue will be a reference thread,
|
||||
@@ -84,16 +84,16 @@ namespace ZThread {
|
||||
*
|
||||
* User-threads are known to be executing thier tasks and will be cancel()ed
|
||||
* as the ThreadQueue is destroyed when main() goes out of scope. This sends
|
||||
* a request to the task to complete soon. Once the task exits, the thread is
|
||||
* a request to the task to complete soon. Once the task exits, the thread is
|
||||
* transitioned to pending-thread status.
|
||||
*/
|
||||
void insertUserThread(ThreadImpl*);
|
||||
|
||||
/**
|
||||
* Insert a pending-thread into the queue.
|
||||
*
|
||||
* Pending-threads are known to have completed thier tasks and thier
|
||||
* resources are reclaimed (lazily) as more threads are started or as the
|
||||
* Insert a pending-thread into the queue.
|
||||
*
|
||||
* Pending-threads are known to have completed thier tasks and thier
|
||||
* resources are reclaimed (lazily) as more threads are started or as the
|
||||
* ThreadQueue is destroyed.
|
||||
*/
|
||||
void insertPendingThread(ThreadImpl*);
|
||||
@@ -106,8 +106,8 @@ namespace ZThread {
|
||||
void insertReferenceThread(ThreadImpl*);
|
||||
|
||||
/**
|
||||
* Insert a task to be run before threads are joined.
|
||||
* Any items inserted after the ThreadQueue desctructor has begun to
|
||||
* Insert a task to be run before threads are joined.
|
||||
* Any items inserted after the ThreadQueue desctructor has begun to
|
||||
* execute will be run() immediately.
|
||||
*/
|
||||
void insertShutdownTask(Task&);
|
||||
@@ -126,7 +126,7 @@ namespace ZThread {
|
||||
void pollReferenceThreads();
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // namespace ZThread
|
||||
|
||||
|
||||
Reference in New Issue
Block a user