Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51914 - sandbox/synchro/boost/synchro
From: vicente.botet_at_[hidden]
Date: 2009-03-22 18:17:36


Author: viboes
Date: 2009-03-22 18:17:35 EDT (Sun, 22 Mar 2009)
New Revision: 51914
URL: http://svn.boost.org/trac/boost/changeset/51914

Log:
0.3.0 : Adding lock_until/for try_lock_until/for free functions + usage of Boost/Chrono

Added:
   sandbox/synchro/boost/synchro/is_lockable.hpp (contents, props changed)
   sandbox/synchro/boost/synchro/locker_options.hpp (contents, props changed)

Added: sandbox/synchro/boost/synchro/is_lockable.hpp
==============================================================================
--- (empty file)
+++ sandbox/synchro/boost/synchro/is_lockable.hpp 2009-03-22 18:17:35 EDT (Sun, 22 Mar 2009)
@@ -0,0 +1,30 @@
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+// (C) Copyright 2007 Anthony Williams
+
+#ifndef BOOST_SYNCHRO_IS_LOCKABLE__HPP
+#define BOOST_SYNCHRO_IS_LOCKABLE__HPP
+
+#include <boost/detail/workaround.hpp>
+
+#include <boost/config/abi_prefix.hpp>
+
+namespace boost { namespace synchro {
+
+ template<typename T>
+ struct is_lockable
+ {
+ BOOST_STATIC_CONSTANT(bool, value = false);
+ };
+ template<typename T>
+ struct is_mutex_type : is_lockable<T>
+ {
+ };
+
+
+}}
+
+#include <boost/config/abi_suffix.hpp>
+
+#endif

Added: sandbox/synchro/boost/synchro/locker_options.hpp
==============================================================================
--- (empty file)
+++ sandbox/synchro/boost/synchro/locker_options.hpp 2009-03-22 18:17:35 EDT (Sun, 22 Mar 2009)
@@ -0,0 +1,38 @@
+//////////////////////////////////////////////////////////////////////////////
+//
+// (C) Copyright Vicente J. Botet Escriba 2008-2009. Distributed under the Boost
+// Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+// See http://www.boost.org/libs/synchro for documentation.
+//
+//////////////////////////////////////////////////////////////////////////////
+
+#ifndef BOOST_SYNCHRO_LOCKER_OPTIONS__HPP
+#define BOOST_SYNCHRO_LOCKER_OPTIONS__HPP
+
+namespace boost { namespace synchro {
+
+ struct force_lock_t
+ {};
+ struct defer_lock_t
+ {};
+ struct try_to_lock_t
+ {};
+ struct adopt_lock_t
+ {};
+ struct throw_timeout_t
+ {};
+ struct nothrow_timeout_t
+ {};
+
+ const force_lock_t force_lock={};
+ const defer_lock_t defer_lock={};
+ const try_to_lock_t try_to_lock={};
+ const adopt_lock_t adopt_lock={};
+ const throw_timeout_t throw_timeout={};
+ const nothrow_timeout_t nothrow_timeout={};
+
+}}
+
+#endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk