No subject

Thu Jan 15 22:29:28 CST 2009

pthread_getspecific() to be called before pthread_setspecific() in this
case, that probably also means that the key has not yet been initialized.

   pthread_once(&ts_vmstate.once, ts_vmstate.key_init);

This code _must_ run before either get/set.  Try adding it before the
case where get may be called before set.  It's harmless, as the
definition of how pthread_once() works ensures that it will only happen
one time.

Russell Bryant
Digium, Inc. | Senior Software Engineer, Open Source Team Lead
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: &

More information about the asterisk-dev mailing list