/[svn]/linuxsampler/trunk/src/common/Condition.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/Condition.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2426 by persson, Sun Mar 4 09:01:32 2012 UTC revision 2427 by persson, Sat Mar 2 07:03:04 2013 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005 - 2012 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2013 Christian Schoenebeck                       *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 358  int Condition::WaitAndUnlockIf(bool bCon Line 358  int Condition::WaitAndUnlockIf(bool bCon
358    
359  void Condition::Set(bool bCondition) {  void Condition::Set(bool bCondition) {
360      dmsg(7,("Condition::Set() -> LOCK()\n"));      dmsg(7,("Condition::Set() -> LOCK()\n"));
361      Lock();      LockGuard lock(*this);
362      dmsg(7,("Condition::Set() -> LOCK() passed\n"));      dmsg(7,("Condition::Set() -> LOCK() passed\n"));
363      if (this->bCondition != bCondition) {      if (this->bCondition != bCondition) {
364          this->bCondition = bCondition;          this->bCondition = bCondition;
# Line 379  void Condition::Set(bool bCondition) { Line 379  void Condition::Set(bool bCondition) {
379              #endif              #endif
380          }          }
381      }      }
     Unlock();  
382  }  }
383    
384  bool Condition::GetUnsafe() {  bool Condition::GetUnsafe() {

Legend:
Removed from v.2426  
changed lines
  Added in v.2427

  ViewVC Help
Powered by ViewVC