-
-
Notifications
You must be signed in to change notification settings - Fork 982
Open
Description
I am getting compile errors when tryping to use the TacyLockable() macro
with pthread mutexes in two scenarios with gcc on Linux:
- as class member
class Test {
...
public:
pthread_mutex_t MyMutex; // before: ok
TracyLockable( pthread_mutex_t, MyMutex ); // error
};
Errors
MyMutex has not beed declared
expected constructor, destructor or type conversion before ';' token
- with "extern"
header:
extern pthread_mutex_t MyMutex;
CPP
pthread_mutex_t MyMutex = PTHREAD_MUTEX_INITIALIZER; // OK
TracyLockable( pthread_mutex_t, MyMutex ); // error, how to initialize?
Errors
conflicting declaratoion with header file line
Is there a way to deal with these two settings?
Metadata
Metadata
Assignees
Labels
No labels