Thread-Error

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

 



On 2/27/08, Adeyeye O. Michael <micadeyeye at crg.ee.uct.ac.za> wrote:
> Hi Benny,
>  I tried out your suggestion but futile.
>  See http://pastebin.mozilla.org/347117
>
>  I included this snippet in each function call.
>
>    1.
>         static pj_thread_desc desc;
>    2.
>               static pj_thread_t *  thread;
>    3.
>       #define REGISTER_THREAD()       \
>    4.
>               if(!pj_thread_is_registered()) {\
>    5.
>               pj_thread_register(NULL,desc,&thread);\
>
>  The static variables won't get called (i.e. resulting in an error) when
>  placed in a global scope.
>
>  Otherwise, the integration is OK but I can't re-register once I
>  de-register, my browser crashes. I mean that is when I get this error:
>
>
>   firefox-bin: ../src/pj/os_core_unix.c:276: pj_thread_register: Assertion
>   `thread->signature1 != 0xDEAFBEEF || thread->signature2 != 0xDEADC0DE ||
>   (thread->thread == pthread_self())' failed.
>   [New LWP 11919]

Sorry for the late reply. In that case, probably you can remove
pj_thread_is_registered() check and just call pj_thread_register() all
the time.

cheers,
 -benny


>
> Yours,
>
> Michael.
>



[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