|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
#include "dx_assert.h"#include "dx_common.h"#include <thread>#include <fcntl.h>#include <libproc.h>#include <mach/error.h>#include <mach/mach_time.h>#include <sys/mman.h>#include <sys/semaphore.h>#include <sys/stat.h>#include <AudioToolbox/AudioToolbox.h>Classes | |
| class | dx::event<kernel> |
| kernel triggerable user space event: signalled when the kernel triggers it, or its callback called instead - on the thread of the kernel's async notifications More... | |
| struct | dx::os_event |
| kernel/user space shared event representation More... | |
| class | dx::thread::prio |
| thread::prio More... | |
| class | dx::thread::prio::realtime |
| thread::prio::realtime More... | |
| class | dx::thread::workgroup |
| an Apple audio workgroup: a realtime thread of a driver's own joins the workgroup of the device it serves, so the scheduler treats them as one deadline group (macOS 11) More... | |
| class | dx::thread::workgroup::interval |
| one work interval of the group: started with its deadline and moved on by update() at every tick More... | |
| class | dx::thread::workgroup::join |
| this thread's membership, held for the scope More... | |
| class | dx::timebase |
Namespaces | |
| namespace | dx |
| dynax driver framework interface namespace | |
| namespace | dx::process |
| process | |
| namespace | dx::thread |
| thread | |
| namespace | dx::thread::debugger |
| whether a debugger is attached to this process, and a wait until one is - a breakpoint in a driver that is launched by the system, never started by hand | |
Macros | |
| #define | SEM_NAME_LEN 31 |
| #define | SHM_NAME_MAX 31 |
Enumerations | |
| enum | dx::scale : int64_t { dx::nsec = 1ll , dx::usec = 1000ll , dx::msec = usec* 1000ll , dx::sec = msec* 1000ll , dx::sec = msec* 1000ll , dx::msec = usec* 1000ll , dx::usec = 1000ll , dx::nsec = 1ll } |
| the factors a dx::timestamp is scaled by - timestamp(value, msec), duration(ticks, usec) More... | |
Functions | |
| int64_t | dx::duration(int64_t timestamp, scalescale scalescale) |
| macOS: timestamp duration (clock ticks) to time converter | |
| void | dx::process::initialize(bool headless= false) noexcept |
| the process ready for dxd: an uncaught exception reported on stderr ahead of abort(); headless - a module hosted in a foreign process (a CoreMIDI driver in the MIDIServer) - leaves the terminate handler, process wide in libc++, and the terminal to the host | |
| std::string | dx::process::name(::pid_t pid= ::getpid()) |
| std::string | dx::thread::name() |
| void | dx::thread::name(const char* name) |
| void | dx::thread::name(const std::string& name) |
| inline ::pid_t | dx::process::pid() noexcept |
| bool | dx::thread::debugger::present() |
| uint32_t | dx::priority() |
| int64_t | dx::time(int64_t timestamp, scalescale scalescale=nsec) |
| macOS: timestamp (clock ticks) to time converter | |
| int64_t | dx::timestamp() |
| macOS: high precision timestamp (clock ticks) Returns current value of a clock that increments monotonically in tick units (starting at an arbitrary point), this clock does not increment while the system is asleep. | |
| int64_t | dx::timestamp(int64_t time, scalescale scalescale=nsec) |
| macOS: time to timestamp (clock ticks) converter | |
| int64_t | dx::timestamp_offset(int64_t time, scalescale scalescale=nsec) |
| macOS: duration to timestamp (clock ticks) converter | |
| template<typename rep_t= long long, typename period_t= std::milli> | |
| bool | dx::thread::debugger::wait_for(std::chrono::duration<rep_t, period_t> timeout= std::chrono::duration<rep_t, period_t>::max()) |
| #define SEM_NAME_LEN 31 |
| #define SHM_NAME_MAX 31 |