Add a new function PR_CallOnceWithArg.

RESOLVED FIXED in 4.3

Status

enhancement
P1
normal
RESOLVED FIXED
17 years ago
17 years ago

People

(Reporter: wtc, Assigned: wtc)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Assignee

Description

17 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

17 years ago
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → 4.3
Assignee

Comment 1

17 years ago
Exactly the same as PR_CallOnce, except that we pass
'arg' to 'func'.
Assignee

Comment 2

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