Use long type for timeout_ms 03/262403/1
authorCheoleun Moon <chleun.moon@samsung.com>
Tue, 10 Aug 2021 05:00:30 +0000 (14:00 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Tue, 10 Aug 2021 05:00:35 +0000 (14:00 +0900)
Change-Id: I019f58896cd02ba27dc317e79535f4f5f068ee5b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
src/include/vine-timer.h
src/vine-timer.cpp

index ec4cac0eb32796c788649229b844b75148f6f127..676324c429375c1962d0d86f8b3e348afbfbd6bf 100644 (file)
@@ -28,7 +28,7 @@ public:
        VineTimer();
        ~VineTimer();
 
-       void start(unsigned int timeout_ms,
+       void start(long timeout_ms,
                std::function<void(void *user_data)> callback, void *user_data);
        void stop();
        void expired();
index 4877fd70d0b2de29fb47c6cab42e145290184334..588de4dc0fff86314413e02e3dd11f62775a98f6 100644 (file)
@@ -38,7 +38,7 @@ VineTimer::~VineTimer()
        stop();
 }
 
-void VineTimer::start(unsigned int timeout_ms,
+void VineTimer::start(long timeout_ms,
        std::function<void(void *user_data)> callback, void *user_data)
 {
        __timer_fd = timerfd_create(CLOCK_MONOTONIC, 0);