Open Bug 1107585 Opened 10 years ago Updated 2 years ago

move the mtransport WrapRunnable infrastructure into XPCOM, generalizing NS_RunnableMethod{,WithArg}

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

People

(Reporter: froydnj, Unassigned)

Details

People keep using WrapRunnable in all sorts of places, or re-inventing NS_NewRunnableMethod*; we should just extend NS_NewRunnableMethod appropriately.  This might also help get rid of some of the post-to-chromium-message-loop bits that people keep writing.

I have a refactoring of WrapRunnable lying around; I need to go through it again and make sure that all the C++ template magic is sufficiently magical.
I very much want the template instantiation to be explicit, not implicit. See bug 622728 comment 5 and comment 21-24. Implicit potentially non-owning types are a footgun.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.