Closed Bug 1123115 Opened 9 years ago Closed 9 years ago

Clarify the ownership of some member variables in task.h; r=smaug

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

Attachments

(1 file)

      No description provided.
Assignee: nobody → ehsan
Attachment #8550951 - Flags: review?(bugs) → review?(bent.mozilla)
Comment on attachment 8550951 [details] [diff] [review]
Clarify the ownership of some member variables in task.h

Review of attachment 8550951 [details] [diff] [review]:
-----------------------------------------------------------------

I hate this task stuff...

::: ipc/chromium/src/base/task.h
@@ +196,5 @@
>  
>      virtual void Run() { DispatchToMethod(obj_, meth_, params_); }
>  
>     private:
> +    T* MOZ_UNSAFE_REF("The validity of this pointer must be enforced by "

A better way to say this is "We have no idea if this is safe!" ;)
Attachment #8550951 - Flags: review?(bent.mozilla) → review+
(In reply to ben turner [:bent] (use the needinfo? flag!) from comment #2)
> ::: ipc/chromium/src/base/task.h
> @@ +196,5 @@
> >  
> >      virtual void Run() { DispatchToMethod(obj_, meth_, params_); }
> >  
> >     private:
> > +    T* MOZ_UNSAFE_REF("The validity of this pointer must be enforced by "
> 
> A better way to say this is "We have no idea if this is safe!" ;)

I know right? :(
https://hg.mozilla.org/mozilla-central/rev/69cdf42cdaf9
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: