mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
3857 os tid (#4519)
* fix(Thread_POSIX): Thread_POSIX.cpp shouldn't convert thread IDs to long #3857; FreeBSD build errors fixes * chore(StreamTokenizerTest): fix warnings * fix(build): FreeBSD config * fix(ThreadTest): some tests checking nothing; temporatily comment FreeBSD threadStackSize test (segfaults on pthread_join) * fix(Thread_POSIX): handle emscripten in currentOsTidImpl * chore: fix emscripten define * chore: fix some clang warnings; add sanitizer flag to FreeBSD linux compat build config
This commit is contained in:
committed by
GitHub
parent
3496e47475
commit
0818febed3
@@ -72,7 +72,7 @@ public:
|
||||
|
||||
Thread(uint32_t sigMask = 0);
|
||||
/// Creates a thread. Call start() to start it.
|
||||
///
|
||||
///
|
||||
/// The optional sigMask parameter specifies which signals should be blocked.
|
||||
/// To block a specific signal, set the corresponding bit in the sigMask.
|
||||
/// Multiple bits can be set in the mask to block multiple signals if needed.
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
|
||||
Thread(const std::string& name, uint32_t sigMask = 0);
|
||||
/// Creates a named thread. Call start() to start it.
|
||||
///
|
||||
///
|
||||
/// The optional sigMask parameter specifies which signals should be blocked.
|
||||
/// To block a specific signal, set the corresponding bit in the sigMask.
|
||||
/// Multiple bits can be set in the mask to block multiple signals if needed.
|
||||
@@ -243,6 +243,7 @@ public:
|
||||
|
||||
static long currentOsTid();
|
||||
/// Returns the operating system specific thread ID for the current thread.
|
||||
/// On error, or if the platform does not support this functionality, it returns zero.
|
||||
|
||||
bool setAffinity(int coreId);
|
||||
/// Sets the thread affinity to the coreID.
|
||||
|
||||
Reference in New Issue
Block a user