Functions | |
int | pthread_attr_setcpuaffinity_np (pthread_attr_t *attr, int cpu_num) |
Sets the CPU number attribute in the thread attributes object. | |
int | pthread_attr_getcpuaffinity_np (pthread_attr_t *attr, int *cpu_num) |
Gets the CPU number attribute from the thread attributes object. | |
int | lw_getsystimes (struct timeval *uptime, struct timeval *boottime) |
Provides a quick way to return the kernel timestamp. |
|
Provides a quick way to return the kernel timestamp. This function provides special handling to retrieve timestamps from the kernel without using system calls.
|
|
Gets the CPU number attribute from the thread attributes object. This function can be used to retrieve the CPU number attribute from the thread attributes object.
|
|
Sets the CPU number attribute in the thread attributes object. This function can be used prior to creating a pthread to bind the pthread to the given cpu_id. The system scope attribute on the thread attribute object should be set, prior to calling this function.
|