#include <pthread.h>
#include <signal.h>
#include <string>
#include <stdint.h>
#include "pbd/libpbd_visibility.h"
#include "pbd/signals.h"
Go to the source code of this file.
|
int | pthread_create_and_store (std::string name, pthread_t *thread, void *(*start_routine)(void *), void *arg, uint32_t stacklimit=0x80000) |
|
void | pthread_cancel_one (pthread_t thread) |
|
void | pthread_cancel_all () |
|
void | pthread_kill_all (int signum) |
|
const char * | pthread_name () |
|
void | pthread_set_name (const char *name) |
|
void | pbd_set_engine_rt_priority (int) |
|
int | pbd_pthread_priority (PBDThreadClass) |
|
int | pbd_pthread_create (const size_t stacksize, pthread_t *thread, void *(*start_routine)(void *), void *arg) |
|
int | pbd_realtime_pthread_create (std::string const &debug_name, const int policy, int priority, const size_t stacksize, pthread_t *thread, void *(*start_routine)(void *), void *arg) |
|
int | pbd_absolute_rt_priority (int policy, int priority) |
|
int | pbd_set_thread_priority (pthread_t, int policy, int priority) |
|
bool | pbd_mach_set_realtime_policy (pthread_t thread_id, double period_ns, bool main) |
|
void | PBD::notify_event_loops_about_thread_creation (pthread_t, const std::string &, int requests=256) |
|
◆ is_pthread_active
#define is_pthread_active |
( |
|
threadID | ) |
threadID!=0 |
◆ mark_pthread_inactive
#define mark_pthread_inactive |
( |
|
threadID | ) |
threadID=0 |
◆ PBD_RT_PRI_CTRL
◆ PBD_RT_PRI_IOFX
◆ PBD_RT_PRI_MAIN
◆ PBD_RT_PRI_MIDI
◆ PBD_RT_PRI_PROC
◆ PBD_RT_STACKSIZE_HELP
#define PBD_RT_STACKSIZE_HELP 0x08000 |
◆ PBD_RT_STACKSIZE_PROC
#define PBD_RT_STACKSIZE_PROC 0x80000 |
◆ PBD_SCHED_FIFO
#define PBD_SCHED_FIFO SCHED_FIFO |
◆ PTHREAD_MACROS_DEFINED
#define PTHREAD_MACROS_DEFINED |
◆ PBDThreadClass
Enumerator |
---|
THREAD_MAIN | |
THREAD_MIDI | |
THREAD_PROC | |
THREAD_CTRL | |
THREAD_IOFX | |
Definition at line 72 of file pthread_utils.h.
◆ pbd_absolute_rt_priority()
int pbd_absolute_rt_priority |
( |
int |
policy, |
|
|
int |
priority |
|
) |
| |
◆ pbd_mach_set_realtime_policy()
bool pbd_mach_set_realtime_policy |
( |
pthread_t |
thread_id, |
|
|
double |
period_ns, |
|
|
bool |
main |
|
) |
| |
◆ pbd_pthread_create()
int pbd_pthread_create |
( |
const size_t |
stacksize, |
|
|
pthread_t * |
thread, |
|
|
void *(*)(void *) |
start_routine, |
|
|
void * |
arg |
|
) |
| |
◆ pbd_pthread_priority()
◆ pbd_realtime_pthread_create()
int pbd_realtime_pthread_create |
( |
std::string const & |
debug_name, |
|
|
const int |
policy, |
|
|
int |
priority, |
|
|
const size_t |
stacksize, |
|
|
pthread_t * |
thread, |
|
|
void *(*)(void *) |
start_routine, |
|
|
void * |
arg |
|
) |
| |
◆ pbd_set_engine_rt_priority()
void pbd_set_engine_rt_priority |
( |
int |
| ) |
|
◆ pbd_set_thread_priority()
int pbd_set_thread_priority |
( |
pthread_t |
, |
|
|
int |
policy, |
|
|
int |
priority |
|
) |
| |
◆ pthread_cancel_all()
void pthread_cancel_all |
( |
| ) |
|
◆ pthread_cancel_one()
void pthread_cancel_one |
( |
pthread_t |
thread | ) |
|
◆ pthread_create_and_store()
int pthread_create_and_store |
( |
std::string |
name, |
|
|
pthread_t * |
thread, |
|
|
void *(*)(void *) |
start_routine, |
|
|
void * |
arg, |
|
|
uint32_t |
stacklimit = 0x80000 |
|
) |
| |
◆ pthread_kill_all()
void pthread_kill_all |
( |
int |
signum | ) |
|
◆ pthread_name()
const char* pthread_name |
( |
| ) |
|
◆ pthread_set_name()
void pthread_set_name |
( |
const char * |
name | ) |
|