Mercurial > mplayer.hg
view loader/ldt_keeper.h @ 30809:d01c83dcb634
Make Win32 mutex and thread linked lists thread safe.
loader/win32.c contains a global linked list of all existing mutexes
(whose head is called mlist), which is accessed from multiple threads,
and as such needs to be protected by a mutex. Fixed.
Same thing for the global linked list of all existing threads, whose
head is called list.
author | sesse |
---|---|
date | Sat, 06 Mar 2010 10:05:10 +0000 |
parents | 26f673ba0675 |
children | 6506ce7ba414 |
line wrap: on
line source
#ifndef MPLAYER_LDT_KEEPER_H #define MPLAYER_LDT_KEEPER_H typedef struct { void* fs_seg; char* prev_struct; } ldt_fs_t; void Setup_FS_Segment(void); ldt_fs_t* Setup_LDT_Keeper(void); void Restore_LDT_Keeper(ldt_fs_t* ldt_fs); #endif /* MPLAYER_LDT_KEEPER_H */