19 Commits

Author SHA1 Message Date
rdb
583c9f1857 pipeline: Fix issues with calling convention on 32-bit Windows 2022-03-01 12:19:13 +01:00
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
46a1ad3544 pipeline: Improve performance of Thread::get_current_thread() substantially
Speedup is realised by using thread-local variables.  Note that on Windows we can't inline get_current_thread, but it's still faster this way than calling TlsGetValue.

In theory the cache line alignment should help avoid false sharing but I have not profiled that extensively.
2022-02-04 23:49:39 +01: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
rdb
f45ddcab2f general: switch to C++11 Lockable semantics for mutexes
This renames acquire/release to lock/unlock in order to be compatible with std::lock_guard and std::unique_lock (which will eventually replace the *MutexHolder classes).  It will also allow us to typedef MutexImpl to std::mutex later on.
2018-05-23 20:37:56 +02:00
tobspr
0fcfb8e372 New file headers, new comment style 2016-02-17 17:47:48 +01:00
David Rose
59ec701a26 build once more with the Tau profiler 2011-09-06 17:29:30 +00:00
David Rose
ef771a796b make sync primitives more similar to python function names 2008-10-14 00:07:05 +00:00
David Rose
a1856db611 use indirect notify dereferencers 2008-09-16 01:51:11 +00:00
David Rose
6718f4c9df oops, don't use vista-only function 2008-08-28 22:33:12 +00:00
David Rose
17f898413e uniquify cache temp filename by thread 2008-08-16 01:22:18 +00:00
David Rose
fb9c56432a we are now using the modified BSD license 2008-05-28 18:37:20 +00:00
David Rose
8d2bdc39fd first pass at SIMPLE_THREADS 2007-06-21 15:33:27 +00:00
David Rose
936412fae2 merge cow_thread_2007_04_12: make copy-on-write operations thread-safe 2007-04-19 18:23:10 +00:00
David Rose
57338ee24d better windows tau support; better threaded DeletedChain support; beginning PipelineReader classes 2006-04-20 04:03:16 +00:00
David Rose
1eb1b26006 tau on windows 2006-04-14 03:18:36 +00:00
David Rose
8a78fffd8f multithreading optimizations, tau profiler, related changes 2006-04-05 19:36:05 +00:00
David Rose
91efb72ca7 move threading/pipelining stuff into new directory, reorganize in general 2006-03-28 23:59:32 +00:00