diff options
author | wtc%netscape.com <devnull@localhost> | 1999-01-08 00:31:15 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 1999-01-08 00:31:15 +0000 |
commit | e9dd4c483c252bab78b3133e6ef9d66f0246949e (patch) | |
tree | 988cbaf6377c73362a2556a95c3f04bbb6f514e3 | |
parent | 0550fbdf60f26401d78867a3b1e19c4a68f82add (diff) | |
download | nspr-hg-e9dd4c483c252bab78b3133e6ef9d66f0246949e.tar.gz |
Bugzilla bug #2227: PR_CEnterMonitor should initialize NSPR implicitly.
-rw-r--r-- | pr/src/threads/prcmon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pr/src/threads/prcmon.c b/pr/src/threads/prcmon.c index 138e2083..3166fc5b 100644 --- a/pr/src/threads/prcmon.c +++ b/pr/src/threads/prcmon.c @@ -303,6 +303,8 @@ PR_IMPLEMENT(PRMonitor*) PR_CEnterMonitor(void *address) { PRMonitor *mon; + if (!_pr_initialized) _PR_ImplicitInitialization(); + _PR_LOCK_MCACHE(); mon = CreateMonitor(address); _PR_UNLOCK_MCACHE(); |