Closed Bug 443877 Opened 16 years ago Closed 16 years ago

Need a way to point timers at a different event target

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch, v1 (obsolete) — Splinter Review
I'm using timers in a thread pool for bug 437152 to implement timeouts and I needed a way to send a timer event to a different thread. Attached is a patch that extends the nsITimer interface to allow this. I extended the interface here but I could very easily make it a new FF_3_1 interface or something...
Attachment #328300 - Flags: review?(benjamin)
Version: unspecified → Trunk
Comment on attachment 328300 [details] [diff] [review]
Patch, v1

Want tests...
Attachment #328300 - Flags: review?(benjamin) → review-
Attached patch Patch, v1.1Splinter Review
Same patch with a testcase.
Attachment #328300 - Attachment is obsolete: true
Attachment #330568 - Flags: review?(benjamin)
Attachment #330568 - Flags: review?(benjamin) → review+
Pushed to moz-central.

Had to change 'NS_GetCurrentThread()' to 'do_GetCurrentThread()' in the test file for libxul builds to be happy.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: