Juan Lang juan.lang@gmail.com writes:
This is a step toward relieving lock serialization, as the two libraries can be loaded independently. (There is no lock yet, though, and this still crashes in utorrent. Fixes in the next two patches.)
There's no reason to invent such complicated locking mechanisms. Just put the whole thing inside a critical section and be done with it.