bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 04/11] libports: lock-less reference counting for port_info o


From: Samuel Thibault
Subject: Re: [PATCH 04/11] libports: lock-less reference counting for port_info objects
Date: Tue, 13 May 2014 12:58:46 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Tue 13 May 2014 12:54:33 +0200, a écrit :
> I'm aware of that.  Note that _ports_complete_deallocate aquires the
> _ports_htable_lock and checks if someone reacquired a reference
> through the hash table.

It should be explained how the whole figure works as a comment somewhere
in the code (perhaps along the refcounts field), because otherwise the
reader (and for now the reviewer of course) is not easily convinced that
it works, and worse, he doesn't know how he is supposed to write further
code.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]