make distinct names for structs and tyepdefs
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
|
||||
#define SHUTDOWN_ACTOR(ptr) shutdown_actor((Actor_t *)ptr);
|
||||
|
||||
typedef struct Actor_t {
|
||||
typedef struct {
|
||||
notifiedFIFO_t fifo;
|
||||
bool terminate;
|
||||
pthread_t thread;
|
||||
|
||||
@@ -93,7 +93,7 @@ TEST(DISABLED_actor, thread_safety_with_core_affinity)
|
||||
|
||||
// Thread safety can be ensured through data separation, here using C inheritance-like
|
||||
// model
|
||||
typedef struct TestActor_t {
|
||||
typedef struct {
|
||||
Actor_t actor;
|
||||
int count;
|
||||
} TestActor_t;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
typedef void (*callback_t)(void*);
|
||||
|
||||
/// @brief This thread barrier allows modifying the maximum joins after it is initialized
|
||||
typedef struct dynamic_barrier_t {
|
||||
typedef struct {
|
||||
pthread_mutex_t barrier_lock;
|
||||
int completed_jobs;
|
||||
int max_joins;
|
||||
|
||||
Reference in New Issue
Block a user