Re: introducing ceph::mutex

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

 



On Mon, 24 Sep 2018, Patrick Donnelly wrote:
> > - The only code that has been converted to ceph::mutex so far is Finisher.
> > You can see what that transition looks like here:
> >
> >         https://github.com/ceph/ceph/pull/24133/commits/8535965ba4298537c489897ccb191a0f458d60d7
> >
> >   - lock("Foo::lock") -> lock(ceph::make_mutex("Foo::lock")) in ctor
> 
> It's odd seeing what looks like a move/copy constructed mutex. If I'm
> understanding the `make_mutex` code correctly, this just selectively
> discards the arguments to the lock ctor if not debug mode?

Right.  I'm fuzzy on the underlying mechanics of the factory function, but 
it seems to work!

sage



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux