diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2012-02-13 17:38:25 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2012-02-13 17:38:25 -0500 |
commit | aae61392be822218cabcab91d95eb1e75d471764 (patch) | |
tree | c2d2f16fb5e8d4d9a0f56a1b4c79ebc9cd481a68 /indra/llcommon/tests/llinstancetracker_test.cpp | |
parent | d4f887e43ccf0a8b7a84ebbfe6889462a1d9c25f (diff) |
Use per-frame ticks on "mainloop" LLEventPump to update LLProcess.
When we reimplemented LLProcess on APR, necessitating APR's funny callback
mechanism to sense child-process status, every isRunning() or getStatus() call
called the APR poll function that calls ALL registered LLProcess callbacks. In
other words, every time any consumer called any LLProcess::isRunning() method,
all LLProcess callbacks were redundantly fired. Change that so that the single
APR poll function is called once per frame, courtesy of the "mainloop"
LLEventPump. Once per viewer frame should be well within the realtime duration
in which it's reasonable to expect child-process status to change.
In effect, this changes LLProcess's public API to introduce a dependency on
"mainloop" ticks. Add such ticks to llprocess_test.cpp as well.
Diffstat (limited to 'indra/llcommon/tests/llinstancetracker_test.cpp')
0 files changed, 0 insertions, 0 deletions