dmex
b02427417c
PH1.x: fixed build
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@5614 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2014-02-25 23:14:38 +00:00
dmex
056f4c0914
PH1.x: Code Cleanup/Fixes
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4784 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2011-10-30 02:47:41 +00:00
dmex
ccfa57bb01
PH1.x: Replaced ConextMenu controls
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4772 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2011-10-28 20:15:00 +00:00
wj32
76972653c2
added some more stats to Fair and FastResourceLock
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2499 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-25 05:47:28 +00:00
wj32
131e7fd748
Thread.VolatileRead -> Interlocked.CompareExchange(x, 0, 0)
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2488 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-22 00:56:28 +00:00
wj32
d8bfd20ab6
* added statistics to FairResourceLock and FastResourceLock
...
* fixed nasty bug in FairResourceLock.Wake - _waiterListHead was uninitialized so Wake tried to unblock the list head, thinking it was an exclusive waiter
* fixed bug in FairResourceLock.ReleaseShared - shouldn't wake anyone when not last shared owner
* added RIGOROUS_CHECKS to FairResourceLock
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2487 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-21 23:02:30 +00:00
wj32
ce3009d180
changed HandleTable to use FastResourceLock
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2479 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-20 09:37:25 +00:00
wj32
e5f57490cd
* added deferred event creation to FastResourceLock
...
* turned on deferred event creation for Fair and FastResourceLock
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2471 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-20 03:56:54 +00:00
wj32
11e14a8c71
new synchronization object: FairResourceLock - releases waiters in FIFO order
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2406 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-10 01:09:21 +00:00
wj32
384f22aef1
added another optimization the JIT compiler is too dumb to add in
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2405 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-09 11:41:13 +00:00
wj32
0dee309562
switched to FastResourceLock in NetworkProvider
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2403 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-09 09:47:33 +00:00
wj32
9bc410640f
fixed comments
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2402 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-09 08:15:33 +00:00
wj32
916cdfe6ce
added some comments to FastResourceLock
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2401 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-09 06:05:54 +00:00
wj32
0ab2ba4dbe
FastResourceLock normal acquire methods now spin for a while before going to sleep
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2400 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-09 05:57:22 +00:00
wj32
177638a65e
fixed another critical bug; introduced some optimizations
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2399 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-09 05:30:29 +00:00
wj32
6336f4b6c8
fixed two typos in FastResourceLock which lead to catastrophic failure
...
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2398 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-09 04:07:15 +00:00
wj32
4cdc3e5422
* switched to using kernel32.dll instead of System.Threading objects
...
* made FastEvent 4 bytes smaller
* completed FastResourceLock
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2397 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-09 03:12:52 +00:00