F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
error.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Darwin/error.cpp
3 // \brief Darwin dispatch semaphore return status conversion implementation
4 // ======================================================================
5 #include "Os/Darwin/error.hpp"
6 
7 namespace Os {
8 namespace Darwin {
9 
11  // dispatch_semaphore_wait returns 0 on success, non-zero on timeout
12  if (dispatch_result == 0) {
14  }
15  return Os::CountingSemaphore::Status::ERROR_TIMEOUT;
16 }
17 
18 } // namespace Darwin
19 } // namespace Os
Operation succeeded.
Definition: Os.hpp:27
Os::CountingSemaphore::Status dispatch_result_to_semaphore_status(long dispatch_result)
Definition: error.cpp:10