Overview
Features
Download
Documentation
Community
Add-Ons & Services

Thread::current() always returns zero

Please post support and help requests here.

Thread::current() always returns zero

Postby salatron » 14 Nov 2012, 11:17

Using Thread::current() always returns zero even if not on the main thread.

Poco::Thread* t = Poco::Thread::current();

Has anyone else experienced this / got a solution to this issue?
salatron
 
Posts: 1
Joined: 14 Nov 2012, 11:14

Re: Thread::current() always returns zero

Postby guenter » 14 Nov 2012, 14:58

How has the thread been created? Thread::current() only works if the thread has been created with POCO.
guenter
 
Posts: 1165
Joined: 11 Jul 2006, 16:27
Location: Austria


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests