[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Tue Jul 13 21:56:49 CEST 2004


CVS commit by staikos: 

almost forgot - we need a mutex


  M +4 -0      kstdatacollection.cpp   1.10


--- kdeextragear-2/kst/kst/kstdatacollection.cpp  #1.9:1.10
@@ -60,6 +60,9 @@ void KST::addVectorToList(KstVectorPtr v
 }
 
+static QMutex bigLock;
+
 void *KST::realloc(void *ptr, size_t size) {
 #ifdef HAVE_LINUX
+  QMutexLocker ml(&bigLock);
   meminfo();
   unsigned long bFree = S(kb_main_free + kb_main_buffers + kb_main_cached);
@@ -74,4 +77,5 @@ void *KST::realloc(void *ptr, size_t siz
 void *KST::malloc(size_t size) {
 #ifdef HAVE_LINUX
+  QMutexLocker ml(&bigLock);
   meminfo();
   unsigned long bFree = S(kb_main_free + kb_main_buffers + kb_main_cached);





More information about the Kst mailing list