40 Commits

Author SHA1 Message Date
rdb
fd033e66f1 pstats: Add support for profiling thread context switches
Disabled by default, enable with `pstats-thread-profiling true` in Config.prc
2022-02-22 18:02:39 +01:00
rdb
90cc8fe385 Fix building with SIMPLE_THREADS=1 2018-10-16 22:15:36 +02:00
rdb
88b0f3327d Warning fixes and cleanups when building with SIMPLE_THREADS 2018-10-16 21:32:42 +02:00
Sam Edwards
b2bfb31114 general: Remove using std::* from headers
Also remove most `using namespace std;` statements. The only one that remains is in py_panda.h.

Closes #350
Closes #335
2018-06-14 16:04:49 +02:00
Sam Edwards
e2b4353800 general: Replace NULL (and 0 as pointer) with C++11 nullptr
Exceptions to this replacement are:
- .c files
- Headers included by a .c file
- stb_image.h
- dr_flac.h
- Strings
- Comments
2018-06-03 16:35:13 -06:00
tobspr
0fcfb8e372 New file headers, new comment style 2016-02-17 17:47:48 +01:00
rdb
40cddd6280 Fixes for Python 3.2 2013-03-27 15:48:24 +00:00
David Rose
57f10c8a37 fix assertion error after long delay 2010-09-22 14:31:42 +00:00
David Rose
15d98ead96 experiment with WIN_THREAD_CONTEXT 2010-04-27 21:30:08 +00:00
David Rose
5755ae390c simple_thread_yield_sleep 2009-12-16 17:27:03 +00:00
David Rose
7bc69b76ed osx ucontext issues popping up again. This should fix them for good. 2009-10-11 18:45:33 +00:00
David Rose
f46981eec9 WindowHandle 2009-09-30 22:14:30 +00:00
David Rose
4b51a7e4a9 yielding the timeslice, win32 2009-06-11 19:41:35 +00:00
David Rose
fc28b55b29 yielding the timeslice 2009-06-11 19:26:30 +00:00
David Rose
532b9c0c50 replace assertion with clamping 2009-05-27 01:32:18 +00:00
David Rose
e72e24a73d volunteer-delay 0 2009-04-02 18:09:45 +00:00
David Rose
a261e805a3 accept threads hanging on shutdown 2009-03-24 22:25:33 +00:00
David Rose
36c0a0fd2e better scheduling parameters 2009-01-27 03:48:05 +00:00
David Rose
1020b07b1e yield a little more politely 2009-01-23 20:16:57 +00:00
David Rose
7db0cd974c better handling of thread::force_yield(), not to impact other threads 2009-01-23 02:39:36 +00:00
David Rose
db1bc689e5 various fixes to threads, downloader, and support for VirtualFileMountHTTP 2008-11-04 01:09:57 +00:00
David Rose
23193a6da1 set_aux_data -> set_python_data 2008-10-15 20:35:09 +00:00
David Rose
dd12d8fc61 turn off system_yield() 2008-10-13 23:31:51 +00:00
David Rose
907527a9c5 better scheduling algorithm 2008-10-10 20:54:15 +00:00
David Rose
448d244a66 better thread debugging 2008-10-09 20:48:40 +00:00
David Rose
fab502970f more threading improvements 2008-10-02 17:50:16 +00:00
David Rose
a1856db611 use indirect notify dereferencers 2008-09-16 01:51:11 +00:00
David Rose
fb9c56432a we are now using the modified BSD license 2008-05-28 18:37:20 +00:00
David Rose
3e4e3248e7 change order of thread cleanup to avoid python crash 2007-10-03 23:33:49 +00:00
David Rose
4a34bda966 insist on main thread behavior in prepare_for_exit() 2007-06-28 04:13:46 +00:00
David Rose
5deb8767f9 start and stop pstats info from suspended tasks (SIMPLE_TASKS only) 2007-06-26 22:38:18 +00:00
David Rose
fe97acf7cb integrate thread_yield in appropriate places 2007-06-26 13:01:16 +00:00
David Rose
26306d6e3e is_true_threads(), write_status() 2007-06-23 00:10:56 +00:00
David Rose
396c995001 don't return from setjmp, getcontext functions 2007-06-22 01:41:12 +00:00
David Rose
03ef026f09 move setjmp etc. into contextSwitch.c 2007-06-22 00:59:51 +00:00
David Rose
c811ae5865 compiler opt defeating 2007-06-21 19:59:55 +00:00
David Rose
16562fc4e5 linux 2007-06-21 17:57:17 +00:00
David Rose
050541c214 protect THREAD_SIMPLE_IMPL 2007-06-21 17:10:38 +00:00
David Rose
75133269ba win32 2007-06-21 16:57:57 +00:00
David Rose
8d2bdc39fd first pass at SIMPLE_THREADS 2007-06-21 15:33:27 +00:00