Michael Hansen
5836af7268
Clean up hsReaderWriterLock
10 years ago
Michael Hansen
f83ec34c67
Move the old IPC-based semaphore to hsGlobalSemaphore, and provide a
...
"normal" (inter-thread only) semaphore class.
10 years ago
Michael Hansen
b774548066
Simplify plDispatch mutexes a bit
10 years ago
Michael Hansen
a669abf10e
Use C++11 threading for hsEvent, and clean up the API a bit
10 years ago
Michael Hansen
2947acb2c8
Replace hsMutex with std::mutex
10 years ago
Michael Hansen
5ed3e3205c
Add move semantics to plString and plStringStream
10 years ago
Michael Hansen
fa1bb779e5
Add explicit string literal overload to try to help Coverity (and
...
avoid a strlen call to boot).
10 years ago
Darryl Pogue
f5b2bddbb2
Always use hsTimer for profile stats.
...
This fixes the weird flickering and inaccurate numbers that were showing up on Windows.
10 years ago
Darryl Pogue
a0da984cdc
Work towards killing TimeGetMs.
...
Only remaining uses are in pnAsyncCore stuff, and I'm not touching that
until the std::thread merge is figured out.
10 years ago
Darryl Pogue
a3ae4201a2
Template-ize hsTimer return values.
10 years ago
Darryl Pogue
5b0652cb7e
std::chrono-ize hsTimer.
10 years ago
Darryl Pogue
6fb7090eed
Remove unused pnUtTime functions.
10 years ago
Christian Walther
689941ba64
Modulate text shadow opacity by the alpha of the text color to make the player lists fade properly.
...
Also, the text of the faded-out player list is re-rendered with alpha == 0 every time the mouse enters its area, do a little less needless work in that case.
11 years ago
Adam Johnson
63af63574c
Revert "Fix dupe callbacks in VaultAddChildNode"
...
This reverts commit b393947cd5
.
The commit was seemingly harmless, but it created or otherwise uncovered
stack corruption deep inside the vault voodoo. While I would like to know
what was up, I'm tired of dealing with it. The crash addressed here was
fixed in a subsequent moul-scripts commit, so let's just toss this one.
11 years ago
Adam Johnson
f187d98a76
Revert "Fix inappropriate UnRefing in VaultCreateNodeTrans"
...
This reverts commit 8f8bad63f0
. It didn't do
what it claimed to.
11 years ago
Adam Johnson
8f8bad63f0
Fix inappropriate UnRefing in VaultCreateNodeTrans
11 years ago
Michael Hansen
f93b37e152
Switch plFormat's accumulator to a plStringStream for better performance
11 years ago
Michael Hansen
d113642a61
Fix typo in non-Win32 logging code
11 years ago
Adam Johnson
b393947cd5
Fix dupe callbacks in VaultAddChildNode
...
This code called back into the python vault operation thingy, which
deletes itself. So, anytime we got dupe CBs, there was a use-after-free
error. Nasty crashes. I tightened up the CB management, threw away some
weird faux-management mess, and squashed some potential silent bugs.
11 years ago
Michael Hansen
aee2f7f7ca
Make hsRefCnt atomic, and merge with hsAtomicRefCnt
11 years ago
Michael Hansen
d283872da6
Unify leak checkers
11 years ago
Michael Hansen
39867610a2
Fix leak check race condition, and remove an unintentional circular ref
11 years ago
Michael Hansen
7f4701cc1a
Add a RefCnt leak debug tracker
11 years ago
Michael Hansen
403528a24b
Use hsRef for storage of the remaining vault nodes
11 years ago
Michael Hansen
8fa9171415
Also use hsRef for the vault functions which "return" lists
11 years ago
Michael Hansen
d2a05929f8
Replace most vault *IncRef() API functions with hsRef versions
11 years ago
Michael Hansen
aa2a1de5d0
Provide an easier/safer way to manage hsRefCnt subclasses
11 years ago
Michael Hansen
9771baf7dd
Fix plStringBuffer constructor with explicit size to count chars, not bytes
11 years ago
Adam Johnson
92a0da34a8
Fix invalid format string
11 years ago
Michael Hansen
b666637a5d
Fix debug crash due to ref miscounting
11 years ago
Michael Hansen
8b43d46ea5
Use moar stringstreams (where appropriate)
11 years ago
Michael Hansen
5c6b6bbc7c
Fix the rest of the plString::Format calls
11 years ago
Adam Johnson
dc9497cf90
Shutdown code de-duplication
11 years ago
Adam Johnson
1d18288779
pfKI is dead, long live pfKI!
11 years ago
Adam Johnson
b426d2faf0
Age Loading now longer has a progress bar...
...
... So we don't need to show/hide the spinner... Or make the console
flash. Stop aggravating me!
11 years ago
Adam Johnson
6324df3d0f
Trash cruft
11 years ago
Michael Hansen
bf5623224c
Add plPrintf - a cstdio-directed version of plFormat
11 years ago
Michael Hansen
3892a84f52
No need to duplicate this...
11 years ago
Michael Hansen
48ca0fde19
More plFormat -- some may make minor changes to certain debug output
...
(mostly regarding bools)
11 years ago
Michael Hansen
281f95638d
Better padding string generation
11 years ago
Michael Hansen
1debf8180b
Convert many of the now-deprecated plString::Format calls to plFormat
11 years ago
Michael Hansen
2c82cdf996
Fix for {.0f} precision in plFormat()
11 years ago
Adam Johnson
4035d96095
Crash Fix: normalize filenames in the patcher!
...
There were two different path separator styles that caused
plResManager::RemoveSinglePage to do nothing when called from the patcher.
D'oh!
11 years ago
Michael Hansen
1a0420127c
Provide some plFormat samples with floats/doubles
11 years ago
Michael Hansen
d15f1557b6
Implement plFormat for floating-point types
11 years ago
Michael Hansen
e331cbd4f7
ASSume that MSVC is the only compiler who uses the __declspec() syntax
11 years ago
Michael Hansen
688852e658
Put compiler checks in their own cmake module
11 years ago
Michael Hansen
15728bbfb5
Add an hsDeprecated macro for declaring APIs deprecated
11 years ago
Adam Johnson
83b8f6c10b
Fix invalid sizeof expressions in HeadSpin.cpp
11 years ago
Adam Johnson
de9fedb4b4
Fix message ref-counting in cyAvatar::RunBehavior
...
This was potential memory leak AND crash bug, all in one nasty package. I
included a little bit of code cleanup free-of-charge.
11 years ago