davidben / nspluginwrapper

A cross-platform NPAPI plugin viewer
http://nspluginwrapper.org
GNU General Public License v2.0
23 stars 10 forks source link

Debug statements are not thread-safe #12

Open davidben opened 13 years ago

davidben commented 13 years ago

We probably should make them so, even though NPN_PluginThreadAsyncCall is the only thing that could be helped. In particular, the indent level wants to be thread-local storage and everything else should either also be thread-local or GOnce'd.

May be slightly more complicated if we don't want to assume the wrapper process has access to an initialized gthread. (Well, we could also assume pthreads.)