X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fdetail%2FFutex.h;h=a2e35020dc2dbafc0981626dff6666ac4a0221b2;hb=0a6bc82e3b9ef8eb49dec6fa7208719ee32990af;hp=b8cbcd2e547dd8007efba44d3d812f9cb085f7e2;hpb=b67b22f4e27773e2e2c155a3629ff8d468bb1286;p=folly.git diff --git a/folly/detail/Futex.h b/folly/detail/Futex.h index b8cbcd2e..a2e35020 100644 --- a/folly/detail/Futex.h +++ b/folly/detail/Futex.h @@ -125,8 +125,8 @@ struct Futex : Atom, boost::noncopyable { * is the same as system_clock on some platforms. */ FutexResult futexWaitImpl( uint32_t expected, - std::chrono::time_point* absSystemTime, - std::chrono::time_point* absSteadyTime, + std::chrono::system_clock::time_point const* absSystemTime, + std::chrono::steady_clock::time_point const* absSteadyTime, uint32_t waitMask); }; @@ -149,20 +149,20 @@ int Futex::futexWake(int count, uint32_t wakeMask); template <> FutexResult Futex::futexWaitImpl( - uint32_t expected, - std::chrono::time_point* absSystemTime, - std::chrono::time_point* absSteadyTime, - uint32_t waitMask); + uint32_t expected, + std::chrono::system_clock::time_point const* absSystemTime, + std::chrono::steady_clock::time_point const* absSteadyTime, + uint32_t waitMask); template <> int Futex::futexWake(int count, uint32_t wakeMask); template <> FutexResult Futex::futexWaitImpl( - uint32_t expected, - std::chrono::time_point* absSystemTime, - std::chrono::time_point* absSteadyTime, - uint32_t waitMask); + uint32_t expected, + std::chrono::system_clock::time_point const* absSystemTime, + std::chrono::steady_clock::time_point const* absSteadyTime, + uint32_t waitMask); } // namespace detail } // namespace folly