summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/raul/Semaphore.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/raul/Semaphore.hpp b/include/raul/Semaphore.hpp
index 6194a5e..75d0a62 100644
--- a/include/raul/Semaphore.hpp
+++ b/include/raul/Semaphore.hpp
@@ -153,8 +153,8 @@ Semaphore::timed_wait(const std::chrono::duration<Rep, Period>& wait)
inline bool
Semaphore::init(unsigned initial)
{
- if (!(_sem =
- CreateSemaphore(NULL, static_cast<LONG>(initial), LONG_MAX, NULL))) {
+ if (!(_sem = CreateSemaphore(
+ nullptr, static_cast<LONG>(initial), LONG_MAX, nullptr))) {
return false;
}
@@ -170,7 +170,7 @@ Semaphore::destroy()
inline void
Semaphore::post()
{
- ReleaseSemaphore(_sem, 1, NULL);
+ ReleaseSemaphore(_sem, 1, nullptr);
}
inline bool