// The old way of manual reference counting typedef struct { MatchStore* store; int ref_count; pthread_mutex_t mutex; } SharedStore;