mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-14 18:46:34 +01:00
convert from Glib:: to Glib::Threads for all thread-related API
git-svn-id: svn://localhost/ardour2/branches/3.0@13084 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
eb6e352dd0
commit
3cd8138a41
138 changed files with 664 additions and 703 deletions
|
|
@ -23,7 +23,7 @@
|
|||
#include <cfloat>
|
||||
#include <cmath>
|
||||
|
||||
#include <glibmm/thread.h>
|
||||
#include <glibmm/threads.h>
|
||||
|
||||
#include "evoral/Curve.hpp"
|
||||
#include "evoral/ControlList.hpp"
|
||||
|
|
@ -170,7 +170,7 @@ Curve::solve ()
|
|||
bool
|
||||
Curve::rt_safe_get_vector (double x0, double x1, float *vec, int32_t veclen)
|
||||
{
|
||||
Glib::Mutex::Lock lm(_list.lock(), Glib::TRY_LOCK);
|
||||
Glib::Threads::Mutex::Lock lm(_list.lock(), Glib::Threads::TRY_LOCK);
|
||||
|
||||
if (!lm.locked()) {
|
||||
return false;
|
||||
|
|
@ -183,7 +183,7 @@ Curve::rt_safe_get_vector (double x0, double x1, float *vec, int32_t veclen)
|
|||
void
|
||||
Curve::get_vector (double x0, double x1, float *vec, int32_t veclen)
|
||||
{
|
||||
Glib::Mutex::Lock lm(_list.lock());
|
||||
Glib::Threads::Mutex::Lock lm(_list.lock());
|
||||
_get_vector (x0, x1, vec, veclen);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue