Thread::current() always returns zero

Please post support and help requests here.
salatron
Posts: 1
Joined: 14 Nov 2012, 11:14

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?

guenter
Posts: 1191
Joined: 11 Jul 2006, 16:27
Location: Austria

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.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 2 guests

cron