Namespace for operating system specific implementations. More...
Namespaces | |
namespace | hidden_posix |
Internal implementation details for POSIX systems. | |
namespace | hidden_win32 |
Internal implementation details for Win32 systems. | |
Functions | |
bool | checkForLxrt (void) |
bool | checkKernelModule (const char *name) |
bool | ensureNoHRT () |
pid_t | getpid () |
void | gettimeofday (struct timespec *time) |
bool | isLxrtAvailable () |
bool | isThisHRT () |
bool | isThisLxrtTask () |
struct timeval ICL_CORE_IMPORT_EXPORT | lxrtGetExecTime () |
void | lxrtShutdown () |
void | lxrtStartup () |
void | makeHRT () |
void | makeThisALinuxTask () |
int | makeThisAnLxrtTask () |
void * | memcpy (void *dest, void *src, size_t count) |
void * | memset (void *dest, int c, size_t count) |
int | nanosleep (const struct timespec *rqtp, struct timespec *rmtp=0) |
int | rename (const char *old_filename, const char *new_filename) |
unsigned int | sleep (unsigned int seconds) |
int | snprintf (char *buffer, size_t maxlen, const char *format,...) |
char * | stpcpy (char *dst, const char *src) |
char * | strdup (const char *s) |
ThreadId | threadSelf () |
int | unlink (const char *filename) |
int | usleep (unsigned long useconds) |
int | vsnprintf (char *buffer, size_t maxlen, const char *format, va_list argptr) |
Variables | |
bool | global_lxrt_available = false |
int | hard_timer_running = 0 |
Namespace for operating system specific implementations.
bool icl_core::os::checkForLxrt | ( | void | ) |
Definition at line 99 of file os_lxrt.cpp.
bool icl_core::os::checkKernelModule | ( | const char * | name | ) |
Definition at line 83 of file os_lxrt.cpp.
Returns true
if the thread was HRT and it had to be changed to soft real time.
Definition at line 168 of file os_lxrt.cpp.
pid_t icl_core::os::getpid | ( | ) | [inline] |
Definition at line 59 of file os_thread.h.
void icl_core::os::gettimeofday | ( | struct timespec * | time | ) | [inline] |
Definition at line 141 of file os_lxrt.cpp.
Definition at line 159 of file os_lxrt.cpp.
Definition at line 150 of file os_lxrt.cpp.
struct timeval ICL_CORE_IMPORT_EXPORT icl_core::os::lxrtGetExecTime | ( | ) | [read] |
Cleans up an LXRT process. This function should be called very late in the main() function of the process.
On systems where LXRT is not available, this function does nothing.
Definition at line 74 of file os_lxrt.cpp.
Initializes the process as an LXRT process. This function should be called very early in the main() function of the process.
On systems where LXRT is not available, this function does nothing.
Definition at line 61 of file os_lxrt.cpp.
Definition at line 180 of file os_lxrt.cpp.
Definition at line 253 of file os_lxrt.cpp.
Definition at line 187 of file os_lxrt.cpp.
void* icl_core::os::memcpy | ( | void * | dest, |
void * | src, | ||
size_t | count | ||
) | [inline] |
void* icl_core::os::memset | ( | void * | dest, |
int | c, | ||
size_t | count | ||
) | [inline] |
int icl_core::os::nanosleep | ( | const struct timespec * | rqtp, |
struct timespec * | rmtp = 0 |
||
) | [inline] |
int icl_core::os::rename | ( | const char * | old_filename, |
const char * | new_filename | ||
) | [inline] |
unsigned int icl_core::os::sleep | ( | unsigned int | seconds | ) | [inline] |
ICL_CORE_IMPORT_EXPORT int icl_core::os::snprintf | ( | char * | buffer, |
size_t | maxlen, | ||
const char * | format, | ||
... | |||
) |
Definition at line 28 of file os_string.cpp.
char* icl_core::os::stpcpy | ( | char * | dst, |
const char * | src | ||
) | [inline] |
Definition at line 47 of file os_string.h.
char* icl_core::os::strdup | ( | const char * | s | ) | [inline] |
Definition at line 52 of file os_string.h.
ThreadId icl_core::os::threadSelf | ( | ) | [inline] |
Definition at line 54 of file os_thread.h.
int icl_core::os::unlink | ( | const char * | filename | ) | [inline] |
int icl_core::os::usleep | ( | unsigned long | useconds | ) | [inline] |
ICL_CORE_IMPORT_EXPORT int icl_core::os::vsnprintf | ( | char * | buffer, |
size_t | maxlen, | ||
const char * | format, | ||
va_list | argptr | ||
) |
Definition at line 38 of file os_string.cpp.
bool icl_core::os::global_lxrt_available = false |
Definition at line 58 of file os_lxrt.cpp.
int icl_core::os::hard_timer_running = 0 |
Definition at line 59 of file os_lxrt.cpp.