コード例 #1
0
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;
}
コード例 #2
0
ファイル: zk_hashtable.c プロジェクト: LefKok/upright
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;
}