Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1307
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: Fri Apr 26 22:12:19 CEST 2024

Total time taken to generate the page: 0.03058 seconds