Closed Bug 123984 Opened 23 years ago Closed 21 years ago

Mac NSPR needs to call MPLibraryIsLoaded

Categories

(NSPR :: NSPR, defect, P1)

PowerPC
Mac System 9.x
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: sfraser_bugs, Assigned: sfraser_bugs)

References

Details

Attachments

(1 file)

Quinn sez (regarding use of MP APIs):

Did you call MPLibraryIsLoaded to check that MP was up and running 
before making this call?  MPLibraryIsLoaded is a macro that calls 
_MPIsFullyInitialized, which actually completes the initialisation of 
the MP library.  If you don't call it you get all sorts of weird 
errors.
Not that it isn't a good idea to initialize a library before using it :-) but 
Quinn's comment was in response to someone having problems using the MP APIs 
under Mac OS 9.2 which I believe we (currently) don't do.
Priority: -- → P1
Target Milestone: --- → 4.2
MPLibraryIsLoaded() is a macro that both tests the presence of the MP library,
and calls _MPIsFullyInitialized(). Since we only use the MP APIs on OS X, I
added the call to InitCriticalRegion() such that it only gets called on X.
Comment on attachment 75499 [details] [diff] [review]
Patch to call MPLibraryIsLoaded();

Do we really need to make this call on X?
That's what the docs say. Of course, it may be a no-op on X, but there should be 
no harm in calling it, and that way we're following the API.
Comment on attachment 75499 [details] [diff] [review]
Patch to call MPLibraryIsLoaded();

r=wtc.

Can you get the drivers approval?
Attachment #75499 - Flags: review+
Blocks: 133659
This bug is in the Mac Classic version of NSPR.
Since we no longer support Mac Classic, marked
the bug WONTFIX even though we already have a
patch.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: