static int insert_watcher_object(zk_hashtable *ht, const char *path, watcher_object_t* wo) { int res; res=do_insert_watcher_object(ht,path,wo); return res; }
int insert_watcher_object(zk_hashtable *ht, const char *path, watcher_object_t* wo) { int res; #ifdef THREADED pthread_mutex_lock(&ht->lock); #endif res=do_insert_watcher_object(ht,path,wo); #ifdef THREADED pthread_mutex_unlock(&ht->lock); #endif return res; }