AtomicCount.h 871 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // "$Id$"
  3. //
  4. // Copyright (c)1992-2011, ZheJiang Dahua Technology Stock CO.LTD.
  5. // All Rights Reserved.
  6. //
  7. // Description:
  8. // Revisions: Year-Month-Day SVN-Author Modification
  9. //
  10. #ifndef INFRA3_ATOMIC_COUNT_H__
  11. #define INFRA3_ATOMIC_COUNT_H__
  12. #include "Detail/atomic_count.hpp"
  13. namespace Dahua {
  14. namespace Infra {
  15. /// \brief 原子计数器
  16. /// 等价声明如下:
  17. /// \code
  18. /// class CAtomicCount
  19. /// {
  20. /// CAtomicCount(CAtomicCount const&);
  21. /// CAtomicCount& operator=(CAtomicCount const&);
  22. ///
  23. /// public:
  24. /// explicit CAtomicCount(long v);
  25. ///
  26. /// long operator++(); // 前缀++
  27. ///
  28. /// long operator--(); // 前缀--
  29. ///
  30. /// operator long() const;
  31. ///
  32. /// long get() const;
  33. ///
  34. /// void set(long v);
  35. /// };
  36. /// \endcode
  37. ///
  38. typedef Detail::atomic_count CAtomicCount;
  39. } // namespace Infra
  40. } // namespace Dahua
  41. #endif // INFRA_ATOMIC_COUNT_H__