unregister external thread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I using simple wrapper on pj_thread functions, to create threads in
my application. I also always add this magic code to the thread
functions:

    static pj_thread_desc desc;

    static pj_thread_t *thread;

 

    if(!pj_thread_is_registered()) {

        pj_thread_register(NULL,desc,&thread);

    }

 

It worked fine with 1.0rc2, but with 1.0.1 I get the old error:

 

11:35:32.936 os_core_win32.  pjlib 1.0.1 for win32 initialized

EstablishAssertion failed: !"Calling pjlib from unknown/external thread.
You mus

t " "register external threads with pj_thread_register() " "before
calling any p

jlib functions.", file
e:\work\pjproject-wince-1.0.1\pjlib\src\pj\os_core_win32.

c, line 522

ed call.

Assertion failed: mutex->owner == pj_thread_this(), file
e:\work\pjproject-wince

-1.0.1\pjlib\src\pj\os_core_win32.c, line 945

 

What can be the problem?

 

Best regards,

Ilya

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090426/e3778db8/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux