Searched refs:ssync (Results 1 – 1 of 1) sorted by relevance
136 struct state_sync *ssync; in init_state_sync_obj() local138 ssync = (struct state_sync*)mmap(NULL, sizeof(struct state_sync), in init_state_sync_obj()140 if (ssync == MAP_FAILED) { in init_state_sync_obj()147 pthread_mutex_init(&ssync->mutex, &mattr); in init_state_sync_obj()152 pthread_cond_init(&ssync->condition, &cattr); in init_state_sync_obj()154 ssync->state = STATE_INIT; in init_state_sync_obj()155 return ssync; in init_state_sync_obj()158 void destroy_state_sync_obj(struct state_sync *ssync) { in destroy_state_sync_obj() argument159 pthread_cond_destroy(&ssync->condition); in destroy_state_sync_obj()160 pthread_mutex_destroy(&ssync->mutex); in destroy_state_sync_obj()[all …]