Closed
Bug 185687
Opened 22 years ago
Closed 22 years ago
Add a new function PR_CallOnceWithArg.
Categories
(NSPR :: NSPR, enhancement, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
4.3
People
(Reporter: wtc, Assigned: wtc)
Details
Attachments
(1 file)
2.36 KB,
patch
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → 4.3
Assignee | ||
Comment 1•22 years ago
|
||
Exactly the same as PR_CallOnce, except that we pass 'arg' to 'func'.
Assignee | ||
Comment 2•22 years ago
|
||
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.
Description
•