mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
Fixes from develop experimental (on top of 1.11.2) (#3017)
* MongoDB::PooledConnection: Prevent unwanted release by disabling copy semantics. Enabled move semantics for C++11. * Construct MongoDB::Cursor from aggragation cursor. * Added function to get OS-specific numerical thread ID and %J pattern to use numerical OS thread id in pattern formatter. Co-authored-by: Tomaz Beltram <tomaz.beltram@topit.si>
This commit is contained in:
@@ -224,8 +224,11 @@ public:
|
||||
/// Returns the Thread object for the currently active thread.
|
||||
/// If the current thread is the main thread, 0 is returned.
|
||||
|
||||
static TID currentTid();
|
||||
/// Returns the native thread ID for the current thread.
|
||||
static TID currentTid();
|
||||
/// Returns the native thread ID for the current thread.
|
||||
|
||||
static long currentOsTid();
|
||||
/// Returns the operating system specific thread ID for the current thread.
|
||||
|
||||
protected:
|
||||
ThreadLocalStorage& tls();
|
||||
@@ -378,6 +381,10 @@ inline Thread::TID Thread::currentTid()
|
||||
return currentTidImpl();
|
||||
}
|
||||
|
||||
inline long Thread::currentOsTid()
|
||||
{
|
||||
return currentOsTidImpl();
|
||||
}
|
||||
|
||||
} // namespace Poco
|
||||
|
||||
|
||||
Reference in New Issue
Block a user