Home
last modified time | relevance | path

Searched refs:ssync (Results 1 – 1 of 1) sorted by relevance

/system/memory/lmkd/tests/
Dlmkd_test.cpp137 struct state_sync *ssync; in init_state_sync_obj() local
139 ssync = (struct state_sync*)mmap(NULL, sizeof(struct state_sync), in init_state_sync_obj()
141 if (ssync == MAP_FAILED) { in init_state_sync_obj()
148 pthread_mutex_init(&ssync->mutex, &mattr); in init_state_sync_obj()
153 pthread_cond_init(&ssync->condition, &cattr); in init_state_sync_obj()
155 ssync->state = STATE_INIT; in init_state_sync_obj()
156 return ssync; in init_state_sync_obj()
159 void destroy_state_sync_obj(struct state_sync *ssync) { in destroy_state_sync_obj() argument
160 pthread_cond_destroy(&ssync->condition); in destroy_state_sync_obj()
161 pthread_mutex_destroy(&ssync->mutex); in destroy_state_sync_obj()
[all …]