mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-17 03:55:59 +01:00
With ptrhead, Thread::currentTid() returns a pointer to a struct which
leads to a compile error when assigning it to an long. Thus _ostid type should be changed to IntPtr and the assignment should use a reinterpret_cast. Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
parent
7470e4fc12
commit
2f40cd5b59
@ -199,7 +199,7 @@ private:
|
||||
Priority _prio;
|
||||
Timestamp _time;
|
||||
int _tid;
|
||||
int _ostid;
|
||||
IntPtr _ostid;
|
||||
std::string _thread;
|
||||
long _pid;
|
||||
const char* _file;
|
||||
@ -247,7 +247,7 @@ inline long Message::getTid() const
|
||||
}
|
||||
|
||||
|
||||
inline long Message::getOsTid() const
|
||||
inline IntPtr Message::getOsTid() const
|
||||
{
|
||||
return _ostid;
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ void Message::init()
|
||||
#if !defined(POCO_VXWORKS)
|
||||
_pid = Process::id();
|
||||
#endif
|
||||
_ostid = Thread::currentTid();
|
||||
_ostid = reinterpret_cast<IntPtr>(Thread::currentTid());
|
||||
Thread* pThread = Thread::current();
|
||||
if (pThread)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user