Mercurial > dwindows
diff dwtestoo.cpp @ 2934:6d3da42f63af
C++: Fix a couple issues reported by GCC 6 on PPC Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 31 Dec 2022 00:54:00 +0000 |
parents | 3cdb02171b01 |
children | 440de3640522 |
line wrap: on
line diff
--- a/dwtestoo.cpp Sat Dec 31 00:41:28 2022 +0000 +++ b/dwtestoo.cpp Sat Dec 31 00:54:00 2022 +0000 @@ -468,7 +468,7 @@ } // Thread and Event functions - void UpdateMLE(DW::MLE *threadmle, char *text, DW::Mutex *mutex) + void UpdateMLE(DW::MLE *threadmle, const char *text, DW::Mutex *mutex) { static unsigned int pos = 0; @@ -488,7 +488,7 @@ UpdateMLE(threadmle, buf, mutex); // Increment the ready count while protected by mutex - dw_mutex_lock(mutex); + mutex->Lock(); ready++; // If all 4 threads have incrememted the ready count... // Post the control event semaphore so things will get started.