13 timespec sleep_interval;
15 sleep_interval.tv_nsec = interval.
getUSeconds() * 1000;
17 timespec remaining_interval;
18 remaining_interval.tv_sec = 0;
19 remaining_interval.tv_nsec = 0;
22 PlatformIntType status = nanosleep(&sleep_interval, &remaining_interval);
28 else if (EINTR == errno) {
29 sleep_interval = remaining_interval;
34 task_status = Os::Task::Status::DELAY_ERROR;
42 return Os::Delegate::makeDelegate<TaskInterface, Os::Posix::Task::PosixTask>(aligned_new_memory);
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
U8 HandleStorage[FW_HANDLE_MAX_SIZE]
Storage type for OSAL handles.
static TaskInterface * getDelegate(HandleStorage &aligned_placement_new_memory)
provide a pointer to a task delegate object
@ OP_OK
message sent/received okay
static Status delay(Fw::Time interval)
delay the current task