// @(#)root/thread:$Id$ // Authors: Enric Tejedor CERN 12/09/2016 // Philippe Canal FNAL 12/09/2016 /************************************************************************* * Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TRWSpinLock #define ROOT_TRWSpinLock #include "TSpinMutex.hxx" #include #include namespace ROOT { class TRWSpinLock { private: std::atomic fReaders; /// fReaderReservation; /// fWriterReservation; /// fWriter; ///