Function annotate_happens_before_forget_all

Source
pub fn annotate_happens_before_forget_all(obj: *const ())
Available on crate feature client_requests_defs only.
Expand description

This is interim until such time as bug 243935 is fully resolved

It instructs Helgrind to forget about any annotate_happens_before calls on the specified object, in effect putting it back in its original state. Once in that state, a use of annotate_happens_after on it has no effect on the calling thread.

An implementation may optionally release resources it has associated with ‘obj’ when annotate_happens_before_forget_all happens. Users are recommended to use annotate_happens_before_forget_all to indicate when a synchronisation object is no longer needed, to avoid potential indefinite resource leaks.