U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » Thread::GetId() returning 0
Re: Thread::GetId() returning 0 [message #50151 is a reply to message #50148] Wed, 08 August 2018 14:29 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1313
Registered: September 2007
Ultimate Contributor
Partial reply to myself... I used Start instead of Run, and the thread was detached from variable.
But now, I'm using Thread::GetCurrentId() which should return the Id of calling thread, but returns instead a very big number which has probably nothing to do with it.

How can I check if I'm inside a required thread ? (same as IsMainThread, but something like myThread.Inside())

Ciao

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Feature request - GetPeerAddr in WebSocket
Next Topic: [SOLVED] Discord bot 404 error using WebSocket, any ideas?
Goto Forum:
  


Current Time: Wed Oct 28 02:08:32 GMT+1 2026

Total time taken to generate the page: 0.56004 seconds