event_count_t(instance_state_t* e_st) { value = 0; ep = NULL_EP; ep_type = channel_v1::endpoint_type_none; ec_queue.init(this); prev_notify = next_notify = nullptr; wait_queue.init(/*this:duh, @todo*/); closure_init(¬ify_closure, static_cast<channel_notify_v1::ops_t*>(nullptr), static_cast<channel_notify_v1::state_t*>(nullptr)); inst_state = e_st; }
static void e_book_backend_scalix_start_book_view (EBookBackend * backend, EDataBookView * book_view) { ScalixBackendSearchClosure *closure; closure = closure_init (book_view, E_BOOK_BACKEND_SCALIX (backend)); g_mutex_lock (closure->mutex); closure->thread = g_thread_create (book_view_thread, book_view, TRUE, NULL); g_cond_wait (closure->cond, closure->mutex); /* at this point we know the book view thread is actually running */ g_mutex_unlock (closure->mutex); }