Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51236 - sandbox/synchro/libs/synchro/example
From: vicente.botet_at_[hidden]
Date: 2009-02-13 05:05:49


Author: viboes
Date: 2009-02-13 05:05:49 EST (Fri, 13 Feb 2009)
New Revision: 51236
URL: http://svn.boost.org/trac/boost/changeset/51236

Log:
Boost.Synchro V0.0.0
Text files modified:
   sandbox/synchro/libs/synchro/example/EL_BancAccount.cpp | 4 ++--
   sandbox/synchro/libs/synchro/example/IEL_Rec_Lockable_BancAccount.cpp | 4 +++-
   sandbox/synchro/libs/synchro/example/IL_Lockable_BancAccount.cpp | 2 +-
   sandbox/synchro/libs/synchro/example/IL_Rec_Lockable_BancAccount.cpp | 3 ++-
   4 files changed, 8 insertions(+), 5 deletions(-)

Modified: sandbox/synchro/libs/synchro/example/EL_BancAccount.cpp
==============================================================================
--- sandbox/synchro/libs/synchro/example/EL_BancAccount.cpp (original)
+++ sandbox/synchro/libs/synchro/example/EL_BancAccount.cpp 2009-02-13 05:05:49 EST (Fri, 13 Feb 2009)
@@ -34,10 +34,10 @@
 
 //[AccountManager
 class AccountManager
- : public exclusive_lockable_adapter<boost::mutex>
+ : public exclusive_lockable_adapter<thread_mutex>
 {
 public:
- typedef exclusive_lockable_adapter<boost::mutex> lockable_base_type;
+ typedef exclusive_lockable_adapter<thread_mutex> lockable_base_type;
     AccountManager()
         : checkingAcct_(*this)
         , savingsAcct_(*this)

Modified: sandbox/synchro/libs/synchro/example/IEL_Rec_Lockable_BancAccount.cpp
==============================================================================
--- sandbox/synchro/libs/synchro/example/IEL_Rec_Lockable_BancAccount.cpp (original)
+++ sandbox/synchro/libs/synchro/example/IEL_Rec_Lockable_BancAccount.cpp 2009-02-13 05:05:49 EST (Fri, 13 Feb 2009)
@@ -32,7 +32,7 @@
 
 class BankAccount
 : protected BankAccount_TN
-, public exclusive_lockable_adapter<boost::recursive_mutex>
+, public exclusive_lockable_adapter<thread_recursive_mutex>
 {
 // int balance_;
     void throw_if_not_owned(strict_locker<BankAccount>&locker) {
@@ -42,6 +42,8 @@
 
 public:
     typedef exclusive_lockable_adapter<boost::recursive_mutex> lockable_base_type;
+
+ BankAccount() {}
     void Deposit(int amount) {
         lock_guard<BankAccount> guard(*this);
 // lock_guard<boost::recursive_mutex> guard(*this->mutex());

Modified: sandbox/synchro/libs/synchro/example/IL_Lockable_BancAccount.cpp
==============================================================================
--- sandbox/synchro/libs/synchro/example/IL_Lockable_BancAccount.cpp (original)
+++ sandbox/synchro/libs/synchro/example/IL_Lockable_BancAccount.cpp 2009-02-13 05:05:49 EST (Fri, 13 Feb 2009)
@@ -39,7 +39,7 @@
 #else
 //[IL_Lockable_BancAccount_BankAccount_inherit
 class BankAccount
-: public exclusive_lockable_adapter<boost::mutex>
+: public exclusive_lockable_adapter<thread_mutex>
 {
     int balance_;
 public:

Modified: sandbox/synchro/libs/synchro/example/IL_Rec_Lockable_BancAccount.cpp
==============================================================================
--- sandbox/synchro/libs/synchro/example/IL_Rec_Lockable_BancAccount.cpp (original)
+++ sandbox/synchro/libs/synchro/example/IL_Rec_Lockable_BancAccount.cpp 2009-02-13 05:05:49 EST (Fri, 13 Feb 2009)
@@ -16,11 +16,12 @@
 using namespace boost;
 //[IL_Rec_Lockable_BancAccount_BankAccount
 class BankAccount
-: public exclusive_lockable_adapter<boost::recursive_mutex>
+: public exclusive_lockable_adapter<thread_recursive_mutex>
 {
 /*<-*/
     int balance_;
 public:
+ BankAccount() {}
     void Deposit(int amount) {
         lock_guard<BankAccount> guard(*this);
         balance_ += amount;


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