Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
prcthr.c File Reference
#include "primpl.h"

Go to the source code of this file.

Functions

void _PR_CleanupThread (PRThread *thread)
 PR_IMPLEMENT (PRStatus)
 PR_IMPLEMENT (PRUint32)
 PR_IMPLEMENT (PRThreadPriority)
 PR_IMPLEMENT (PRThread *)
 PR_IMPLEMENT (void)
 PR_IMPLEMENT (void *)
 PR_IMPLEMENT (PRInt32)
 PR_IMPLEMENT (PRThreadScope)
 PR_IMPLEMENT (PRThreadType)
 PR_IMPLEMENT (PRThreadState)

Variables

PRLock_pr_sleeplock
PRUint32 _pr_recycleThreads = 0

Function Documentation

Definition at line 59 of file prcthr.c.

{
    /* Free up per-thread-data */
    _PR_DestroyThreadPrivate(thread);

    /* Free any thread dump procs */
    if (thread->dumpArg) {
        PR_DELETE(thread->dumpArg);
    }
    thread->dump = 0;

    PR_DELETE(thread->errorString);
    thread->errorStringSize = 0;
    thread->errorStringLength = 0;
    thread->environment = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 76 of file prcthr.c.

{
    static PRBool warning = PR_TRUE;
    if (warning) warning = _PR_Obsolete(
        "PR_Yield()", "PR_Sleep(PR_INTERVAL_NO_WAIT)");
    return (PR_Sleep(PR_INTERVAL_NO_WAIT));
}

Here is the call graph for this function:

Definition at line 161 of file prcthr.c.

{
    return thread->id;
}

Definition at line 166 of file prcthr.c.

{
    return (PRThreadPriority) thread->priority;
}

Definition at line 171 of file prcthr.c.

Here is the call graph for this function:

Definition at line 247 of file prcthr.c.

PR_IMPLEMENT ( void )

Definition at line 286 of file prcthr.c.

{
        return (void *)_PR_MD_GET_SP(thread);
}

Here is the call graph for this function:

Definition at line 302 of file prcthr.c.

{
#ifdef HAVE_THREAD_AFFINITY
    return _PR_MD_GETTHREADAFFINITYMASK(thread, mask);
#else

#if defined(XP_MAC)
#pragma unused (thread, mask)
#endif

    return 0;
#endif
}

Definition at line 424 of file prcthr.c.

{
#ifdef XP_MAC
#pragma unused( thread )
#endif
    if (!_pr_initialized) _PR_ImplicitInitialization();

    if (_PR_IS_NATIVE_THREAD(thread)) {
       return (thread->flags & _PR_BOUND_THREAD) ? PR_GLOBAL_BOUND_THREAD :
                                                                      PR_GLOBAL_THREAD;
    } else
        return PR_LOCAL_THREAD;
}

Here is the call graph for this function:

Definition at line 438 of file prcthr.c.

{
    return (thread->flags & _PR_SYSTEM) ? PR_SYSTEM_THREAD : PR_USER_THREAD;
}

Definition at line 443 of file prcthr.c.

{
    return (NULL == thread->term) ? PR_UNJOINABLE_THREAD : PR_JOINABLE_THREAD;
}  /* PR_GetThreadState */

Variable Documentation

Definition at line 364 of file prcthr.c.

Definition at line 88 of file prinit.c.