On Fri, Jan 15, 2010 at 11:57 PM, Janos Laube <janos.dev@xxxxxxxxx> wrote: >> +static HANDLE ms_eventlog; >> + >> +void openlog(const char *ident, int logopt, int facility) >> +{ >> + if (ms_eventlog) >> + return; >> + ms_eventlog = RegisterEventSourceA(NULL, ident); >> +} > > maybe make ms_eventlog thread local? > for example: > > static __thread HANDLE ms_eventlog; > > this would break compilation with msvc tho. > > janos > Since the code that use it isn't multi-threaded, I fail to see the point. In fact even if it were, I'm not sure I see the big point... especially since the "__thread"-keyword isn't used (AFAICT) at all in the git source code so far. -- Erik "kusma" Faye-Lund -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html