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:
Matej Kenda
2022-05-19 00:23:16 +02:00
committed by GitHub
parent 5bac3e303f
commit 8a8c23c352
19 changed files with 102 additions and 6 deletions

View File

@@ -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