mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-02 06:12:19 -05:00
3914781ebf
Co-authored-by: briaguya <briaguya> Co-authored-by: Christopher Leggett <chris@leggett.dev> Co-authored-by: David Chavez <davi@dcvz.io>
12 lines
230 B
C++
12 lines
230 B
C++
#pragma once
|
|
#include <thread>
|
|
#include <condition_variable>
|
|
|
|
static struct {
|
|
std::thread thread;
|
|
std::condition_variable cv_to_thread, cv_from_thread;
|
|
std::mutex mutex;
|
|
bool running;
|
|
bool processing;
|
|
} audio;
|