Add a new function PR_CallOnceWithArg.

RESOLVED FIXED in 4.3

Status

P1
enhancement
RESOLVED FIXED
16 years ago
16 years ago

People

(Reporter: wtc, Assigned: wtc)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

16 years ago
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

16 years ago
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → 4.3
(Assignee)

Comment 1

16 years ago
Created attachment 111885 [details] [diff] [review]
Proposed patch

Exactly the same as PR_CallOnce, except that we pass
'arg' to 'func'.
(Assignee)

Comment 2

16 years ago
Patch checked in.
Status: ASSIGNED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.