Change event sync to async
authorHyunbin Lee <hyunbin.lee@samsung.com>
Sat, 11 May 2013 04:24:10 +0000 (13:24 +0900)
committerHyunbin Lee <hyunbin.lee@samsung.com>
Sat, 11 May 2013 04:46:19 +0000 (13:46 +0900)
Change-Id: Ieed254ff3e5c70111576e59553c433497c74d52c
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
src/io/FIo_FileEventManagerImpl.cpp
src/io/inc/FIo_FileEventManagerImpl.h

index 1e5a90b..61da638 100644 (file)
@@ -64,8 +64,13 @@ public:
 };
 
 class _FileEvent
-        : public Event
+        : public _Event
 {
+public:
+       _FileEvent(void)
+       {
+               _Event::Initialize();
+       }
 protected:
         virtual void FireImpl(IEventListener& listener, const IEventArg& arg)
         {
@@ -164,7 +169,7 @@ _FileEventManagerImpl::SendEvent(void)
                 if(pEventArg != null)
                 {
                        SysLog(NID_IO, "_FileEventManagerImpl::SendEvent Event Fire");
-                       __pEvent->Fire(*pEventArg);
+                       __pEvent->FireAsync(*pEventArg);
                        r = E_SUCCESS;
                 }
 
index f0d5764..8f1e18c 100644 (file)
@@ -29,7 +29,7 @@
 #include <FBaseObject.h>
 #include <FBaseColHashMap.h>
 #include <FOspConfig.h>
-#include <FBaseRtEvent.h>
+#include <FBaseRt_Event.h>
 
 namespace Tizen { namespace Base
 {
@@ -73,7 +73,7 @@ private:
        static gboolean OnFileEventOccured(GIOChannel* source, GIOCondition condition, gpointer data);
 
        Tizen::Base::Collection::HashMap* __pMonitorFileList;
-       Tizen::Base::Runtime::Event* __pEvent;
+       Tizen::Base::Runtime::_Event* __pEvent;
        int __inotifyFd;
        GSource* __pGSource;
        GIOChannel* __pGIOChannel;