Re: PATCH: avifile init/exit handling
6 Jul
2005
6 Jul
'05
7:52 a.m.
Hi, On Wed, Jul 06, 2005 at 08:14:14AM +0200, Marcus Meissner wrote:
Hi,
This implements Roberts suggestion of uninitializing Ole if it is no longer needed.
Ciao, Marcus
Changelog: Call OleUninitialize() on last AVIFileExit()
+static int ole_initialized = 0; +
+ if (!ole_initialized++) + OleInitialize(NULL); Isn't that somewhat racey? Probably better to use InterlockedIncrement() here.
Andreas Mohr
7467
Age (days ago)
7467
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andreas Mohr