Does glib hash table support multi thread. Is it thread safe hash table.


#pragma omp parallel for private(i) shared(pdt_a)
                pdt_a[i]= g_hash_table_new(g_str_hash, compare_strings);
It gives the following errors. Somebody can help me out of here. How do i make this hashtable thread safe?

GLib-ERROR **: gmem.c:154: failed to allocate 137438953456 bytes

Qingpeng Niu
Department of Computer Science and Engineering at OSU

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]