// CLASS HEADER
#include <dali/internal/event/common/notification-manager.h>
-// EXTERNAL INCLUDES
-#ifdef __clang__
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wall"
-
-#include <boost/thread/mutex.hpp>
-
-#pragma clang diagnostic pop
-#else
-
-#include <boost/thread/mutex.hpp>
-
-#endif // __clang__
-
// INTERNAL INCLUDES
#include <dali/public-api/common/dali-common.h>
-#include <dali/internal/common/owner-container.h>
+#include <dali/devel-api/common/owner-container.h>
+#include <dali/devel-api/threading/mutex.h>
#include <dali/internal/common/message.h>
#include <dali/internal/event/common/property-notification-impl.h>
#include <dali/internal/event/common/complete-notification-interface.h>
}
}
-typedef boost::mutex MessageQueueMutex;
-typedef OwnerContainer< MessageBase* > MessageContainer;
+using MessageQueueMutex = Dali::Mutex;
+using MessageContainer = OwnerContainer<MessageBase*>;
struct NotificationManager::Impl
{
void NotificationManager::QueueCompleteNotification( CompleteNotificationInterface* instance )
{
// queueMutex must be locked whilst accessing queues
- MessageQueueMutex::scoped_lock lock( mImpl->queueMutex );
+ MessageQueueMutex::ScopedLock lock( mImpl->queueMutex );
mImpl->updateWorkingInterfaceQueue.PushBack( instance );
}
DALI_ASSERT_DEBUG( NULL != message );
// queueMutex must be locked whilst accessing queues
- MessageQueueMutex::scoped_lock lock( mImpl->queueMutex );
+ MessageQueueMutex::ScopedLock lock( mImpl->queueMutex );
mImpl->updateWorkingMessageQueue.PushBack( message );
}
void NotificationManager::UpdateCompleted()
{
// queueMutex must be locked whilst accessing queues
- MessageQueueMutex::scoped_lock lock( mImpl->queueMutex );
+ MessageQueueMutex::ScopedLock lock( mImpl->queueMutex );
// Move messages from update working queue to completed queue
// note that in theory its possible for update completed to have last frames
// events as well still hanging around. we need to keep them as well
bool NotificationManager::MessagesToProcess()
{
// queueMutex must be locked whilst accessing queues
- MessageQueueMutex::scoped_lock lock( mImpl->queueMutex );
+ MessageQueueMutex::ScopedLock lock( mImpl->queueMutex );
return ( 0u < mImpl->updateCompletedMessageQueue.Count() ||
( 0u < mImpl->updateCompletedInterfaceQueue.Count() ) );
{
// queueMutex must be locked whilst accessing queues
{
- MessageQueueMutex::scoped_lock lock( mImpl->queueMutex );
+ MessageQueueMutex::ScopedLock lock( mImpl->queueMutex );
// Move messages from update completed queue to event queue
// note that in theory its possible for event queue to have