Closed Bug 185687 Opened 22 years ago Closed 22 years ago

Add a new function PR_CallOnceWithArg.

Categories

(NSPR :: NSPR, enhancement, P1)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: wtc)

Details

Attachments

(1 file)

I am now convinced that it is useful to have a variant of PR_CallOnce that allows the caller to pass an argument to the initialization function. In one example where this new function would be useful, the caller would pass its window handle to the initialization routine. The window handle is necessary because the initialization routine needs to pop up a dialog, but it doesn't matter which window handle is used if multiple threads call PR_CallOnceWithArg.
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → 4.3
Attached patch Proposed patchSplinter Review
Exactly the same as PR_CallOnce, except that we pass 'arg' to 'func'.
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: