mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01: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:
@@ -132,6 +132,9 @@ public:
|
||||
long getTid() const;
|
||||
/// Returns the numeric thread identifier for the message.
|
||||
|
||||
long getOsTid() const;
|
||||
/// Returns the numeric thread identifier for the message.
|
||||
|
||||
void setPid(long pid);
|
||||
/// Sets the process identifier for the message.
|
||||
|
||||
@@ -200,6 +203,7 @@ private:
|
||||
Priority _prio;
|
||||
Timestamp _time;
|
||||
long _tid;
|
||||
long _ostid;
|
||||
std::string _thread;
|
||||
long _pid;
|
||||
const char* _file;
|
||||
@@ -246,6 +250,10 @@ inline long Message::getTid() const
|
||||
return _tid;
|
||||
}
|
||||
|
||||
inline long Message::getOsTid() const
|
||||
{
|
||||
return _ostid;
|
||||
}
|
||||
|
||||
inline long Message::getPid() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user