mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +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
|
|
@ -532,7 +532,7 @@ pbd_mach_set_realtime_policy (pthread_t thread_id, double period_ns, bool main)
|
|||
}
|
||||
|
||||
PBD::Thread*
|
||||
PBD::Thread::create (boost::function<void ()> const& slot, std::string const& name)
|
||||
PBD::Thread::create (std::function<void ()> const& slot, std::string const& name)
|
||||
{
|
||||
try {
|
||||
return new PBD::Thread (slot, name);
|
||||
|
|
@ -554,7 +554,7 @@ PBD::Thread::Thread ()
|
|||
_t = pthread_self ();
|
||||
}
|
||||
|
||||
PBD::Thread::Thread (boost::function<void ()> const& slot, std::string const& name)
|
||||
PBD::Thread::Thread (std::function<void ()> const& slot, std::string const& name)
|
||||
: _name (name)
|
||||
, _slot (slot)
|
||||
, _joinable (true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue