X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fmutex.cpp;h=eca63b64899883b9a875f257981749717f4c5b8d;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=4ede578bd5e0aeeb413a57e87f774d8e1096f875;hpb=e3acc0b267b14fda5db3c7bbb2f218b993ef84b3;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/mutex.cpp b/synfig-core/trunk/src/synfig/mutex.cpp index 4ede578..eca63b6 100644 --- a/synfig-core/trunk/src/synfig/mutex.cpp +++ b/synfig-core/trunk/src/synfig/mutex.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file mutex.cpp ** \brief Template File ** -** $Id: mutex.cpp,v 1.3 2005/01/12 00:55:46 darco Exp $ +** $Id$ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -52,7 +53,7 @@ //using namespace std; //using namespace etl; -using namespace sinfg; +using namespace synfig; /* === M A C R O S ========================================================= */ @@ -102,7 +103,7 @@ Mutex::Mutex() pthread_mutex_init(mtx_ptr,&attr); pthread_mutexattr_destroy(&attr); - + blackbox=mtx_ptr; } @@ -156,9 +157,9 @@ RecMutex::RecMutex() RWLock::RWLock() { pthread_rwlock_t*const rwlock_ptr(new pthread_rwlock_t); - + pthread_rwlock_init(rwlock_ptr, NULL); - + blackbox=rwlock_ptr; } @@ -167,7 +168,7 @@ RWLock::~RWLock() pthread_rwlock_t*const rwlock_ptr(static_cast(blackbox)); pthread_rwlock_destroy(rwlock_ptr); - + delete rwlock_ptr; }