threads: remove WINAPI, implement priority for pthreads
authorFernetMenta <fernetmenta@online.de>
Sun, 31 Jul 2011 12:12:53 +0000 (14:12 +0200)
committerJim Carroll <thecarrolls@jiminger.com>
Sat, 21 Apr 2012 11:53:55 +0000 (07:53 -0400)
commit64427d44d61950244b376c8ae8b6dd62c460d7f6
tree8e3e6eca7967fb58d050f1baa2a0eb4929e4957b
parent8d73c5d1f18c2fcac2aa7fc83dd2d653a4b9b0f9
threads: remove WINAPI, implement priority for pthreads

Also:
[fix] threads: fix race condition when stopping thread - cherry pick merge

Also, from jimfcarroll:
[fixed] AirPlayServer now complies with the new CThread constructor requirements (that is, you must supply a thread name).
replace custom thread local storage with the XbmcThreads::ThreadLocal template.
[cosmetic] removed incorrect hungarian notation.
[cleanup] Removed XSyncUtils. Moved the GlobalMemoryStatus call to XMemUtil. Cleaned up code that used the #define INFINITE from XSyncUtils.h
[cleanup] Some miscellaneous cleanup. Fixed initialization warning in LCD. Removed some unused functions and members.
[cleanup] PAPlayer warning due to constructor initialization list order.
87 files changed:
lib/UnrarXLib/extract.cpp
lib/UnrarXLib/unpack.cpp
lib/UnrarXLib/unpack15.cpp
xbmc/ApplicationMessenger.cpp
xbmc/cdrip/CDDAReader.cpp
xbmc/cores/DllLoader/exports/emu_kernel32.cpp
xbmc/cores/DllLoader/exports/emu_kernel32.h
xbmc/cores/DummyVideoPlayer.cpp
xbmc/cores/dvdplayer/DVDCodecs/Video/CrystalHD.cpp
xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
xbmc/cores/dvdplayer/DVDPerformanceCounter.cpp
xbmc/cores/dvdplayer/DVDPerformanceCounter.h
xbmc/cores/dvdplayer/DVDPlayer.cpp
xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
xbmc/cores/paplayer/PAPlayer.cpp
xbmc/dialogs/GUIDialogCache.cpp
xbmc/filesystem/FileCache.cpp
xbmc/filesystem/HTSPDirectory.cpp
xbmc/filesystem/LastFMDirectory.cpp
xbmc/filesystem/MythSession.cpp
xbmc/filesystem/PipeFile.cpp
xbmc/filesystem/PipesManager.cpp
xbmc/filesystem/PipesManager.h
xbmc/filesystem/RarFile.cpp
xbmc/filesystem/RarManager.h
xbmc/filesystem/SAPDirectory.cpp
xbmc/interfaces/python/XBPython.cpp
xbmc/interfaces/python/XBPython.h
xbmc/interfaces/python/xbmcmodule/GUIPythonWindow.cpp
xbmc/interfaces/python/xbmcmodule/GUIPythonWindow.h
xbmc/interfaces/python/xbmcmodule/GUIPythonWindowXML.cpp
xbmc/interfaces/python/xbmcmodule/GUIPythonWindowXML.h
xbmc/interfaces/python/xbmcmodule/window.cpp
xbmc/linux/Makefile.in
xbmc/linux/PlatformDefs.h
xbmc/linux/PlatformInclude.h
xbmc/linux/XEventUtils.cpp [deleted file]
xbmc/linux/XEventUtils.h [deleted file]
xbmc/linux/XHandle.cpp
xbmc/linux/XHandle.h
xbmc/linux/XMemUtils.cpp
xbmc/linux/XMemUtils.h
xbmc/linux/XSyncUtils.h [deleted file]
xbmc/linux/XThreadUtils.cpp [deleted file]
xbmc/linux/XThreadUtils.h [deleted file]
xbmc/music/LastFmManager.cpp
xbmc/music/infoscanner/MusicInfoScanner.cpp
xbmc/music/infoscanner/MusicInfoScraper.cpp
xbmc/network/AirPlayServer.cpp
xbmc/network/Network.h
xbmc/network/TCPServer.cpp
xbmc/network/UdpClient.cpp
xbmc/network/UdpClient.h
xbmc/network/libscrobbler/scrobbler.cpp
xbmc/peripherals/devices/PeripheralCecAdapter.cpp
xbmc/peripherals/devices/PeripheralCecAdapter.h
xbmc/pictures/GUIWindowSlideShow.cpp
xbmc/rendering/dx/RenderSystemDX.cpp
xbmc/threads/Thread.cpp
xbmc/threads/Thread.h
xbmc/threads/ThreadImpl.h [new file with mode: 0644]
xbmc/threads/platform/ThreadImpl.cpp [new file with mode: 0644]
xbmc/threads/platform/ThreadImpl.h [new file with mode: 0644]
xbmc/threads/platform/darwin/ThreadSchedImpl.cpp [new file with mode: 0644]
xbmc/threads/platform/linux/ThreadSchedImpl.cpp [new file with mode: 0644]
xbmc/threads/platform/pthreads/ThreadImpl.cpp [new file with mode: 0644]
xbmc/threads/platform/pthreads/ThreadImpl.h [new file with mode: 0644]
xbmc/threads/platform/win/ThreadImpl.cpp [new file with mode: 0644]
xbmc/threads/platform/win/ThreadImpl.h [new file with mode: 0644]
xbmc/utils/AlarmClock.cpp
xbmc/utils/AsyncFileCopy.cpp
xbmc/utils/DownloadQueue.cpp
xbmc/utils/DownloadQueue.h
xbmc/utils/DownloadQueueManager.h
xbmc/utils/JobManager.cpp
xbmc/utils/LCD.h
xbmc/utils/RssReader.cpp
xbmc/utils/RssReader.h
xbmc/utils/Splash.cpp
xbmc/utils/TuxBoxUtil.cpp
xbmc/video/VideoInfoDownloader.cpp
xbmc/video/VideoInfoDownloader.h
xbmc/video/VideoInfoScanner.cpp
xbmc/video/VideoReferenceClock.cpp
xbmc/win32/PlatformDefs.h
xbmc/win32/WindowHelper.cpp