41 Commits

Author SHA1 Message Date
dmex 903b867a26 Use atomic reads/writes in workqueue
Replace shared-state access iwith acquire/release and no-fence atomic helpers for `Terminating`, `SemaphoreHandle`, and thread/busy counters. This tightens memory ordering around shutdown, semaphore signaling, and worker loop checks to reduce race windows under concurrent thread activity.
2026-10-02 23:10:07 +10:00
dmex f7796ce36f Use NoFence workqueue
The queue lock already provides synchronization, so using the NoFence variants removes redundant memory fences and reduces overhead without changing semantics.
2026-04-07 23:26:42 +10:00
dmex 3f55a60c98 re-organized phlib 2025-05-22 07:48:42 +10:00
dmex a7473d0657 Update SAL Annotations 2025-05-15 00:39:39 +10:00
Johnny Shaw b07afd0e88 driver ps set apis (#1370) 2022-09-07 16:44:10 -06:00
Johnny Shaw c6e44b2fea Update copyright and license (#1256) 2022-06-13 20:33:49 -06:00
dmex 1ca2cf5732 Update macro usage 2019-04-27 21:31:54 +02:00
dmex 549898ecb9 Update PhCreateThread to PhCreateThreadEx 2018-05-18 04:19:28 +10:00
dmex 04a0739987 Update native API wrapper functions 2018-01-25 23:17:21 +11:00
dmex 9c0cf8adf8 Remove legacy XP code 2017-06-11 06:05:43 +10:00
dmex d06f6610b0 Fix github file encoding issues 2017-04-27 19:12:40 +10:00
Wen Jia Liu 1989541f2f Reorder #include statements 2016-04-10 14:24:00 +10:00
Wen Jia Liu f181de196e Remove deprecated functions; Make Pha* functions inline 2016-02-25 16:58:44 +11:00
Wen Jia Liu 23f83db57c Add execution environment support to work queue; Use low I/O priority for signature verification 2016-02-24 22:45:25 +11:00
Wen Jia Liu 9996edca71 Reorganize header files (more modularity); Simplify phlib initialization 2016-02-24 15:27:51 +11:00
Wen Jia Liu 15f97f975a Update dates 2016-02-09 13:24:00 +11:00
Wen Jia Liu f30bf5513a Add missing auto pools to provider, workqueue and thrdstk 2016-02-05 16:52:03 +11:00
Wen Jia Liu f387b70c05 Reflow phlib comments to 100 character width 2016-02-05 04:02:29 +11:00
Wen Jia Liu f754b78c89 Reorganize queued lock types for better readability 2016-02-03 15:27:29 +11:00
Wen Jia Liu 9519d4a5a4 Enable delayed registration for symbol provider to eliminating GUI hanging; Create work queue semaphore on-demand; Reload symbols when necessary to improve symbol resolution accuracy; Stop loading symbols when the process properties dialog is closed; DotNetTools: Create CLR process support every time a stack trace is being performed for better accuracy 2015-06-18 07:22:43 +00:00
Wen Jia Liu db33e54cb2 Code reorganization and function renames 2015-05-30 13:45:20 +00:00
Wen Jia Liu 4b36837748 Dramatically faster handle listing and search when running without administrative privileges 2015-05-30 04:45:31 +00:00
Wen Jia Liu d51aff7cb2 fixed debug information problems 2013-11-10 09:21:27 +00:00
Wen Jia Liu 90e92f2348 converted all annotations to SAL 2.0 2013-11-10 06:25:03 +00:00
Wen Jia Liu 615930620e patch by xhmikosr 2011-08-25 02:43:45 +00:00
Wen Jia Liu c2afc273b4 * removed KphHandle argument from KPH functions
* removed control Create functions
* consistently use VOID for functions with no parameters
* PPVOID -> PVOID *
* PhRefreshMupDevicePrefixes -> PhUpdateMupDevicePrefixes, PhRefreshDosDevicePrefixes -> PhUpdateDosDevicePrefixes
2011-08-22 03:12:13 +00:00
Wen Jia Liu 61afa1c419 added general stats system 2010-10-26 10:21:33 +00:00
Wen Jia Liu e2130c5315 added more docs 2010-10-22 10:12:38 +00:00
Wen Jia Liu cc73d89eed * added optional initialization of phlib components
* added "static" to many global variables
2010-09-27 08:09:49 +00:00
Wen Jia Liu ea822c6397 added PH_ prefixes to some #defines 2010-09-02 11:09:40 +00:00
Wen Jia Liu 260899ca31 added custom compare functions to object search list view 2010-08-21 02:45:48 +00:00
Wen Jia Liu d3d6266be7 fixed argument specifications 2010-08-04 06:14:51 +00:00
Wen Jia Liu aca4889942 renamed functions to [verb] [object] form 2010-07-30 08:35:37 +00:00
Wen Jia Liu d3c1e3cbb1 un-Win32-ization 2010-06-27 02:16:45 +00:00
Wen Jia Liu 47dc9f2084 improved synchronization definitions 2010-06-16 06:50:30 +00:00
Wen Jia Liu 53b9ede465 * cut some code from PhBeginInitOnce
* added work queue debugging info
* improved TLM_SETCALLBACK
2010-06-12 00:19:55 +00:00
Wen Jia Liu 91f52f9dae used linked list for work queue 2010-06-03 06:13:43 +00:00
Wen Jia Liu a81daeb2fd re-implemented free list as lock-free list 2010-06-02 12:10:22 +00:00
Wen Jia Liu 16082f6557 * began handle table
* KphNtClose -> KphCloseHandle
* global work queue is now delay initialized
* added semaphore property page
* progress on phsvc
2010-03-20 09:35:24 +00:00
Wen Jia Liu e11d9ac2c2 even more un-Win32-izing 2010-03-14 08:21:47 +00:00
Wen Jia Liu d66d377d66 restructured common code into phlib 2010-03-11 04:15:11 +00:00