mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Reduce reliance on boost - the hard part
the rest from `tools/convert_boost.sh`.
* replace boost::function, boost::bind with std::function and std::bind.
This required some manual fixes, notably std::placeholders,
some static_casts<>, and boost::function::clear -> = {}.
This commit is contained in:
parent
ff95d81612
commit
74c4ca3e52
392 changed files with 2264 additions and 2282 deletions
|
|
@ -245,7 +245,7 @@ class CoreAudioBackend : public AudioBackend, public PortEngineSharedImpl {
|
|||
samplepos_t sample_time_at_cycle_start ();
|
||||
pframes_t samples_since_cycle_start ();
|
||||
|
||||
int create_process_thread (boost::function<void()> func);
|
||||
int create_process_thread (std::function<void()> func);
|
||||
int join_process_threads ();
|
||||
bool in_process_thread ();
|
||||
uint32_t process_thread_count ();
|
||||
|
|
@ -379,7 +379,7 @@ class CoreAudioBackend : public AudioBackend, public PortEngineSharedImpl {
|
|||
|
||||
struct ThreadData {
|
||||
CoreAudioBackend* engine;
|
||||
boost::function<void ()> f;
|
||||
std::function<void ()> f;
|
||||
size_t stacksize;
|
||||
double period_ns;
|
||||
|
||||
|
|
@ -389,7 +389,7 @@ class CoreAudioBackend : public AudioBackend, public PortEngineSharedImpl {
|
|||
os_workgroup_join_token_s _join_token;
|
||||
#endif
|
||||
|
||||
ThreadData (CoreAudioBackend* e, boost::function<void ()> fp, size_t stacksz, double period)
|
||||
ThreadData (CoreAudioBackend* e, std::function<void ()> fp, size_t stacksz, double period)
|
||||
: engine (e) , f (fp) , stacksize (stacksz), period_ns (period) {}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue