]> git.lyx.org Git - lyx.git/blobdiff - sigc++/thread.cc
move things around
[lyx.git] / sigc++ / thread.cc
index 035a2980b1757170952ee7f9f368463367e46a9b..a8ed235dc6495b08be6f882c81d5f636fe64310b 100644 (file)
@@ -53,7 +53,7 @@ Condition::~Condition()
 int Condition::signal()       {return pthread_cond_signal(&cond_);}
 int Condition::broadcast()    {return pthread_cond_broadcast(&cond_);}
 int Condition::wait(Mutex &m) {return pthread_cond_wait(&cond_,m);}
-int Condition::wait(Mutex &m,timespec* spec)
+int Condition::wait(Mutex &m,struct timespec* spec)
   {return pthread_cond_timedwait(&cond_,m,spec);}
 int Condition::destroy()      {return pthread_cond_destroy(&cond_);}
 
@@ -135,13 +135,6 @@ void Private_::destroy()
 #endif
   }
 
-Private<int>::operator int&() 
-{
-       int * value = static_cast<int*>(get());
-       if (!value)
-               set(static_cast<void*>(value = new int(0)));
-       return *(value);
-}
 
 #ifdef SIGC_PTHREAD_DCE
 MutexAttr Mutex::Default={pthread_mutexattr_default};
@@ -155,8 +148,8 @@ ThreadAttr Thread::Default={0};
 
 
 #ifdef SIGC_CXX_NAMESPACES
-};
-};
+}
+}
 #endif
 
 #endif