Author: fejj
Date: 2008-01-17 17:10:33 -0500 (Thu, 17 Jan 2008)
New Revision: 93212
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/list.cpp
trunk/moon/src/list.h
Log:
remove the Queue::Wait()
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2008-01-17 22:09:23 UTC (rev 93211)
+++ trunk/moon/src/ChangeLog 2008-01-17 22:10:33 UTC (rev 93212)
@@ -12,8 +12,6 @@
(AdvanceFrame): Handle EOF frame events.
(audio_loop): Handle EOF frame events.
- * list.cpp (Wait): Added.
-
2008-01-17 Chris Toshok <[EMAIL PROTECTED]>
* stylus.cpp (InkPresenter::OnCollectionChanged): we need to
Modified: trunk/moon/src/list.cpp
===================================================================
--- trunk/moon/src/list.cpp 2008-01-17 22:09:23 UTC (rev 93211)
+++ trunk/moon/src/list.cpp 2008-01-17 22:10:33 UTC (rev 93212)
@@ -339,14 +339,12 @@
Queue::Queue ()
{
pthread_mutex_init (&lock, NULL);
- //pthread_cond_init (&cond, NULL);
list = new List ();
}
Queue::~Queue ()
{
pthread_mutex_destroy (&lock);
- //pthread_cond_destroy (&cond);
delete list;
}
@@ -387,7 +385,6 @@
{
Lock ();
list->Append (node);
- //pthread_cond_signal (&cond);
Unlock ();
}
@@ -416,15 +413,6 @@
pthread_mutex_unlock (&lock);
}
-void
-Queue::Wait ()
-{
- if (pthread_mutex_trylock (&lock) != 0)
- pthread_cond_wait (&cond, &lock);
-
- pthread_mutex_unlock (&lock);
-}
-
List *
Queue::LinkedList ()
{
Modified: trunk/moon/src/list.h
===================================================================
--- trunk/moon/src/list.h 2008-01-17 22:09:23 UTC (rev 93211)
+++ trunk/moon/src/list.h 2008-01-17 22:10:33 UTC (rev 93212)
@@ -70,7 +70,6 @@
class Queue {
protected:
pthread_mutex_t lock;
- pthread_cond_t cond;
List *list;
public:
@@ -91,8 +90,6 @@
void Lock ();
void Unlock ();
- void Wait ();
-
// accessing the internal linked list directly requires manual
Locking/Unlocking.
List *LinkedList ();
};
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches