I tried passing a structure as the 4th argument while using pthread_create() with something like this:
pthread_create()
pthread_create(&tid1, NULL, calca, &t); //t is the struct
I have this piece of code that is giving me trouble. I know all the threads are reading the same struct. But I have no idea how to fix this.
#include <pthread.h> #include <stdio.h> #include ...
I don't know how to marshall this structure in Mono.
typedef struct rib_struct { rib_used_t used; rib_status_t status; rib_role_t role; ...
Basic function of this code is to get number of counter and thread, creates the counters then create the threads then get numbers of instructions in each thread (format of instruction ...