summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/Thread.cpp
AgeCommit message (Collapse)Author
2010-04-29Massive Poo storm, had to take shelter. Hacks, fixes, etc etcSonicadvance1
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5421 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-29[OSX] Use spinlocks instead of mutexes since mutexes are really semaphores, ↵Sonicadvance1
gives me a decent speed up. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5420 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-17possible savestate memory leak fix in DoBuffernitsuja-
made Lua run on the CPU thread to fix unreliable script execution issues several fixes so the Lua savestate functions can actually work added Lua function savestate.verify to help with catching desyncs implemented FailVerifyAtFrameBoundary in Lua interface added a Clear button to the LuaWindow git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5382 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-14うそ!Sonicadvance1
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5057 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-14Bunch of tiny memory leaks fixed and cleanup, フウ〜!Sonicadvance1
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5056 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-14This could alleviate the suffering of dual core synchronization a bit.ayuanx
But I doubt you would notice it in most cases. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4830 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-09from BhaaL: linux compile fix for r4794, Event::Wait now supports a timeout ↵Shawn Hoffman
(default to INFINITE), and it returns true when the timeout expired. fixes issue 1974 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4799 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-09-07GUI: Fixed some GUI related start/stop crashesJohn Peterson
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4223 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-08-06misc cleanupShawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3942 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-31Fix noWX build, and lower thread priority for screenshots sl1nk3.s
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3913 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-28Now ALL copyright dates are fixed to the legally correct year: The year in ↵XTra.KrazzY
which the project began. Now we don't have to change it every year :) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3898 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-15Fixed one of the two remaining crash on Stop (issue 600), and removed some ↵sl1nk3.s
setup defines which are now useless anyway. There's an attempt to implement Peek_Color too, probably done wrong :P git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3799 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-13Atomic operations library.Nolan Check
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3775 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-11fig ConfigPadDlg size in linux, temporary linux build fixLPFaint99
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3742 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-10Use _beginthreadexNolan Check
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3736 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-03-28Some code cleanupomegadox
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2768 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-03-20Fixed some log messagesnakeee
Fixed a crash when no game ini exists git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2690 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-03-18nakee's new logmanager. added a console window for windows builds (prints to ↵Shawn Hoffman
parent console on non-win32). also fix some random wxw bugs: main window's position is saved when using debugger, disabling windows from the tools menu are saved settings, some other small fixes git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2675 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-24Linux build fixes and some warning cleanup for GCComegadox
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2406 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-24Last Commit (Threads and Stop): Linux build fix, I forgot to change the ↵John Peterson
definition of the function there to git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2402 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-24Threads and Stop: How about this? A timeout only for the shutdown process? ↵John Peterson
That way the shutdown can either work anyway, or crash, which is simpler than having to open the Task Manager and manually end the deadlocked process. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2401 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-23Restore proper functionality of events and thread waits. The arbitrary 5 sec ↵hrydgard
timeout ( ??? ) broke stepping in the debugger. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2397 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-23Core and Common Threads Stop and Start: Added timeout to the thread waiting ↵John Peterson
loops. If we have waited more than five seconds we can be pretty sure that the thread is deadlocked. So then we can just as well continue and hope for the best. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2383 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-22Attempt to workaround some stop hangs by using MsgWait instead of Wait. ↵hrydgard
change order of dsp / video shutdown. some comments. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2379 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-22Core Stop and Start: Added alternative separate thread timer/loop based ↵John Peterson
waiting, instead of same thread loop waiting. You can try it with the SETUP_TIMER_WAITING option in Setup.h. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2375 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-02-20The Mega Change Of Doom - or, fixing Stop. Almost. At least it's better than ↵hrydgard
before. However, the OpenGL plugin seems to lose textures a lot between game restarts :P I think the GL plugin needs to do a lot more cleanup. This change also includes tons of minor code formatting cleanup. Yeah, should've separated it ... sorry :( Kills the old CPUCompare support. I'll resurrect it if I need it again, right now it mostly clutters the code. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2321 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-11fixXTra.KrazzY
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1850 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-11Printf compile warning fixesXTra.KrazzY
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1849 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-01-09properly support POSIX threads kthxbushing
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1838 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-12-13small speedup of logmanager, minor logging improvements, misc code standard ↵hrydgard
improvements, replace a crash with an error message in ppcanalyst git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1521 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-12-08set svn:eol-style=native for **.cppbushing
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1442 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-12-06add support for GCC 4.0bushing
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1407 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-12-04Fix windows build. Fix InterlockedIncrement for old gcc. TOTEST on linux.memberTwo.mb2
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1394 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-12-04merged windows/linux atomic operations,nakeee
please test on windows git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1391 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-11-24DC + fifo: small fix/correction ;). Remove old stupid OnIdleDC stuff. ↵memberTwo.mb2
Interesting: DSPnull with DC + IdleSkipping show invalid read addr sometimes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1286 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-11-23Moved wiimote_test to wiimotenakeee
Some linux compile fixes git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1266 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-11-15more portingnakeee
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1183 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-10-30Added InterlockedExchange to Linux sideSonicadvance1
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1018 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-10-17add InterlockedExchangeAdd for olds gcc versiontmator
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@898 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-10-09Fix Building in Linux, removed the define for _T() in Common.h so now we can ↵Sonicadvance1
have wx headers after including Common.h. Also, InterlockedExchange isn't in Linux so I just made it assign the variable git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@809 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-10-02style fixuphrydgard
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@749 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-10-02Get rid of locks added InterlockedExchangeAdd function in thread.cppnakeee
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@748 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-24DC idle skipping part 2: video thread is woken up when "OnIdle".memberTwo.mb2
For testing purpose only (I can't test with lots of games) because it may break some sync. Besides, I'm not satisfied with the way things are done. So just uncomment "//#define THREAD_VIDEO_WAKEUP_ONIDLE" in thread.h in order to test it. Works fine with movies, 2D and simple 3D in ZWW at least. If it's ok I'll clean up the code. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@658 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-17fixed small memory leaks of the windows versionfires.gc
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@549 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27Fixed warnings about comparison between signed and unsigned integer expressions.Maarten ter Huurne
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@366 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-07-12Initial megacommit.hrydgard
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4 8ced0084-cf51-0410-be5f-012b33b47a6e