> Date: Fri, 18 Jul 2014 12:29:09 +0300 > From: Eli Zaretskii <e...@gnu.org> > Cc: egg...@cs.ucla.edu, bug-gnulib@gnu.org > > Or maybe we should simply go back to your idea of locking, e.g., by > using EnterCriticalSection and LeaveCriticalSection?
Actually, I see that libunistring already includes functions for locking (which on Windows wrap the 2 APIs I mentioned above). So I guess it's best to use them.