From e719dae71d52983edb311fa29fb88a01220547ec Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Sat, 31 Oct 2009 09:40:55 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@34278 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- ChangeLog | 5 +++++ libpcsxcore/cdriso.c | 2 +- plugins/dfinput/pad.c | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index bad03c69..b16ff0e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +October 31, 2009 Wei Mingzhi + + * libpcsxcore/cdriso.c: Declare thread controlling variable as volatile. + * plugins/dfinput/pad.c: Likewise. + October 30, 2009 Wei Mingzhi * data/pcsx.glade2: Do not allow resizing for dialog boxes. diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index 9c34f229..fee82551 100644 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -57,7 +57,7 @@ static HANDLE threadid; static pthread_t threadid; #endif static int initial_offset = 0; -static char playing = 0; +static volatile char playing = 0; static char cddaBigEndian = 0; char* CALLBACK CDR__getDriveLetter(void); diff --git a/plugins/dfinput/pad.c b/plugins/dfinput/pad.c index 77b72994..e6ced19a 100644 --- a/plugins/dfinput/pad.c +++ b/plugins/dfinput/pad.c @@ -50,8 +50,8 @@ long PADshutdown(void) { return PSE_PAD_ERR_SUCCESS; } -static pthread_t ThreadID; -static uint8_t TerminateThread = 0; +static pthread_t ThreadID; +static volatile uint8_t TerminateThread = 0; static void *JoyThread(void *param) { while (!TerminateThread) { -- cgit v1.2.3