In primpl.h, moved the definitions of macros _PR_MD_INIT_LOCKS and

_PR_MD_START_INTERRUPTS from the common section to the classic nspr
section.  These macros are not used in the pthreads version.
Modified files: primpl.h, _pth.h, and ptsynch.c.


git-svn-id: svn://10.0.0.236/trunk@19187 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtc%netscape.com 1999-02-01 19:20:05 +00:00
parent 4e2026137a
commit ee128013bb
3 changed files with 6 additions and 9 deletions

View File

@ -226,6 +226,4 @@ extern int (*_PT_aix_yield_fcn)();
#error "Need to define PTHREAD_YIELD for this platform"
#endif
#define _MD_INIT_LOCKS()
#endif /* nspr_pth_defs_h_ */

View File

@ -726,6 +726,9 @@ PR_EXTERN(void) _PR_MD_WAKEUP_CPUS();
/* Interrupts related */
PR_EXTERN(void) _PR_MD_START_INTERRUPTS(void);
#define _PR_MD_START_INTERRUPTS _MD_START_INTERRUPTS
PR_EXTERN(void) _PR_MD_STOP_INTERRUPTS(void);
#define _PR_MD_STOP_INTERRUPTS _MD_STOP_INTERRUPTS
@ -792,6 +795,9 @@ extern void _PR_MD_EXIT(PRIntn status);
/* Locks related */
PR_EXTERN(void) _PR_MD_INIT_LOCKS(void);
#define _PR_MD_INIT_LOCKS _MD_INIT_LOCKS
PR_EXTERN(PRStatus) _PR_MD_NEW_LOCK(_MDLock *md);
#define _PR_MD_NEW_LOCK _MD_NEW_LOCK
@ -1214,12 +1220,6 @@ extern PRStatus _PR_MapOptionName(
extern void _PR_InitThreads(
PRThreadType type, PRThreadPriority priority, PRUintn maxPTDs);
PR_EXTERN(void) _PR_MD_START_INTERRUPTS(void);
#define _PR_MD_START_INTERRUPTS _MD_START_INTERRUPTS
PR_EXTERN(void) _PR_MD_INIT_LOCKS(void);
#define _PR_MD_INIT_LOCKS _MD_INIT_LOCKS
struct PRLock {
#if defined(_PR_PTHREADS)
pthread_mutex_t mutex; /* the underlying lock */

View File

@ -57,7 +57,6 @@ void _PR_InitLocks(void)
rv = PTHREAD_CONDATTR_INIT(&_pt_cvar_attr);
PR_ASSERT(0 == rv);
_PR_MD_INIT_LOCKS();
}
static void pt_PostNotifies(PRLock *lock, PRBool unlock)