Use pthread_name instead of pthread_self for portability
This commit is contained in:
parent
40f49b85ac
commit
57066732ca
@ -19,11 +19,11 @@
|
|||||||
*/
|
*/
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <poll.h>
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "pbd/error.h"
|
#include "pbd/error.h"
|
||||||
|
#include "pbd/pthread_utils.h"
|
||||||
|
|
||||||
#include "ardour/debug.h"
|
#include "ardour/debug.h"
|
||||||
#include "ardour/slave.h"
|
#include "ardour/slave.h"
|
||||||
@ -432,7 +432,7 @@ LTC_Slave::speed_and_position (double& speed, framepos_t& pos)
|
|||||||
|
|
||||||
frameoffset_t skip = now - (monotonic_cnt + nframes);
|
frameoffset_t skip = now - (monotonic_cnt + nframes);
|
||||||
monotonic_cnt = now;
|
monotonic_cnt = now;
|
||||||
DEBUG_TRACE (DEBUG::LTC, string_compose ("speed_and_position - TID:%1 | latency: %2 | skip %3\n", ::pthread_self(), ltc_slave_latency.max, skip));
|
DEBUG_TRACE (DEBUG::LTC, string_compose ("speed_and_position - TID:%1 | latency: %2 | skip %3\n", pthread_name(), ltc_slave_latency.max, skip));
|
||||||
|
|
||||||
if (last_timestamp == 0) {
|
if (last_timestamp == 0) {
|
||||||
engine_dll_initstate = 0;
|
engine_dll_initstate = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user