Formating corrections

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-09-05 08:26:28 +00:00
parent 0eb949e11f
commit 9c5313d170

View File

@@ -316,8 +316,11 @@ public:
*/ */
enum wxThreadKind enum wxThreadKind
{ {
wxTHREAD_DETACHED, /** Detached thread */ /** Detached thread */
wxTHREAD_JOINABLE /** Joinable thread */ wxTHREAD_DETACHED,
/** Joinable thread */
wxTHREAD_JOINABLE
}; };
/** /**
@@ -325,12 +328,23 @@ enum wxThreadKind
*/ */
enum wxThreadError enum wxThreadError
{ {
wxTHREAD_NO_ERROR = 0, /** No error */ /** No error */
wxTHREAD_NO_RESOURCE, /** No resource left to create a new thread */ wxTHREAD_NO_ERROR = 0,
wxTHREAD_RUNNING, /** The thread is already running */
wxTHREAD_NOT_RUNNING, /** The thread isn't running */ /** No resource left to create a new thread. */
wxTHREAD_KILLED, /** Thread we waited for had to be killed */ wxTHREAD_NO_RESOURCE,
wxTHREAD_MISC_ERROR /** Some other error */
/** The thread is already running. */
wxTHREAD_RUNNING,
/** The thread isn't running. */
wxTHREAD_NOT_RUNNING,
/** Thread we waited for had to be killed. */
wxTHREAD_KILLED,
/** Some other error */
wxTHREAD_MISC_ERROR
}; };
/** /**
@@ -846,9 +860,11 @@ public:
*/ */
enum wxMutexType enum wxMutexType
{ {
wxMUTEX_DEFAULT, /** Normal mutex: try to always use this one. Recursive under Windows. */ /** Normal mutex: try to always use this one. Recursive under Windows. */
wxMUTEX_DEFAULT,
wxMUTEX_RECURSIVE /** Recursive mutex: don't use these ones with wxCondition. */ /** Recursive mutex: don't use these ones with wxCondition. */
wxMUTEX_RECURSIVE
}; };
@@ -857,13 +873,26 @@ enum wxMutexType
*/ */
enum wxMutexError enum wxMutexError
{ {
wxMUTEX_NO_ERROR = 0, /** operation completed successfully */ /** The operation completed successfully. */
wxMUTEX_INVALID, /** mutex hasn't been initialized */ wxMUTEX_NO_ERROR = 0,
wxMUTEX_DEAD_LOCK, /** mutex is already locked by the calling thread */
wxMUTEX_BUSY, /** mutex is already locked by another thread */ /** The mutex hasn't been initialized. */
wxMUTEX_UNLOCKED, /** attempt to unlock a mutex which is not locked */ wxMUTEX_INVALID,
wxMUTEX_TIMEOUT, /** LockTimeout() has timed out */
wxMUTEX_MISC_ERROR /** any other error */ /** The mutex is already locked by the calling thread. */
wxMUTEX_DEAD_LOCK,
/** The mutex is already locked by another thread. */
wxMUTEX_BUSY,
/** An attempt to unlock a mutex which is not locked. */
wxMUTEX_UNLOCKED,
/** wxMutex::LockTimeout() has timed out. */
wxMUTEX_TIMEOUT,
/** Any other error */
wxMUTEX_MISC_ERROR
}; };