diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-04-11 23:37:18 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-04-11 23:37:18 +0000 |
commit | 26f72edc468b235ee735821be54856ccfce87fbd (patch) | |
tree | 1650dac6e15e57a1040d5b32b9eae92352f9b641 /src/playerData.h | |
parent | ae33b348afa800447db9344cf6e5d082f1a1fcb3 (diff) | |
download | mpd-26f72edc468b235ee735821be54856ccfce87fbd.tar.gz mpd-26f72edc468b235ee735821be54856ccfce87fbd.tar.xz mpd-26f72edc468b235ee735821be54856ccfce87fbd.zip |
add volatile qualifiers to some shared mem buffer stuff, to enusre compiler
doesn't optimize out order sensitive stuff
git-svn-id: https://svn.musicpd.org/mpd/trunk@698 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/playerData.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/playerData.h b/src/playerData.h index 52cbba1be..353c33c66 100644 --- a/src/playerData.h +++ b/src/playerData.h @@ -33,14 +33,14 @@ extern int buffered_before_play; extern int buffered_chunks; typedef struct _Buffer { - char * chunks; - mpd_uint16 * chunkSize; - mpd_uint16 * bitRate; - float * times; - mpd_sint16 begin; - mpd_sint16 end; - mpd_sint16 next; - mpd_sint8 wrap; + char * volatile chunks; + mpd_uint16 * volatile chunkSize; + mpd_uint16 * volatile bitRate; + float * volatile times; + mpd_sint16 volatile begin; + mpd_sint16 volatile end; + mpd_sint16 volatile next; + mpd_sint8 volatile wrap; float totalTime; } Buffer; |