GLib's GSequence simultaneous read accesses not allowed?



Greetings!

I am using a GRWLock to provide several reader threads access (g_sequence_lookup) to the *constant* GSequence and I get

Accessing a sequence while it is being sorted or searched is not allowed

Why can't one have several simultaneous searches? (I agree that simultaneous searching AND sorting is problematic).

What is the rationale? It seems easy to implement a reentrant search function.

My GLib version is v2.40.0 


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