Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-06-04 | Comment the intent of test_timers.lua | Nat Goodspeed | |
so the user need not reverse-engineer the code to figure out the output. | |||
2024-06-03 | Fix a small typo | Nat Goodspeed | |
2024-06-03 | Allow consumer code to query or adjust the per-tick timeslice. | Nat Goodspeed | |
2024-06-03 | Distinguish TimersListener callers by reply LLEventPump name. | Nat Goodspeed | |
The reqid is only distinct within a particular calling script. | |||
2024-06-03 | Leverage new leap.eventstream() function in Floater.lua. | Nat Goodspeed | |
2024-05-31 | Add timers.lua API module and test_timers.lua test program. | Nat Goodspeed | |
Since timers presents a timers.Timer Lua class supporting queries and cancellation, make TimersListener::scheduleAfter() and scheduleEvery() respond immediately so the newly constructed Timer object has the reqid necessary to perform those subsequent operations. This requires that Lua invocations of these operations avoid calling the caller's callback with that initial response. Reinvent leap.generate() to return a Lua object supporting next() and done() methods. A plain Lua coroutine that (indirectly) calls fiber.wait() confuses the fiber scheduler, so avoid implementing generate() as a Lua coroutine. Add a bit more leap.lua diagnostic output. | |||
2024-05-31 | Tweak for current Lua dbg() convention. | Nat Goodspeed | |
2024-05-31 | Add leap.eventstream() and cancelreq() functions. | Nat Goodspeed | |
leap.eventstream() is used when we expect the viewer's LLEventAPI to send an immediate first response with the reqid from the request, followed by some number of subsequent responses bearing the same reqid. The difference between eventstream() and generate() is that generate() expects the caller to request each such response, whereas eventstream calls the caller's callback with each response. cancelreq() is for canceling the background fiber launched by eventstream() before the callback tells it to quit. Make WaitFor:close() remove the object from the waitfors list; similarly, make WaitForReqid:close() remove the object from the pending list. For this reason, cleanup() must iterate over a copy of each of the pending and waitfors lists. Instead of unregisterWaitFor() manually searching the waitfors list, use table.find(). | |||
2024-05-31 | Add a bit more dbg() conditional diagnostic output. | Nat Goodspeed | |
2024-05-31 | Don't check if printf(format) arg is a string. | Nat Goodspeed | |
2024-05-31 | Explain the name of the LL::WorkQueue::BackJack class. | Nat Goodspeed | |
2024-05-29 | Merge branch 'release/luau-scripting' into lua-timers | Nat Goodspeed | |
2024-05-29 | Make ~ThreadPool() join every thread before destroying its vector. | Nat Goodspeed | |
Otherwise we fall into the trap of destroying a joinable std::thread, which calls std::terminate() and hence our crash-on-terminate() handler. The previous ~ThreadPool() logic only joined threads if the queue wasn't already closed, but evidently we can reach the destructor with the queue closed but the threads not yet joined. Fixes #1534. | |||
2024-05-24 | Merge branch 'release/luau-scripting' into lua-timers | Nat Goodspeed | |
2024-05-24 | Fix merge glitches | Nat Goodspeed | |
2024-05-24 | Merge branch 'release/luau-scripting' into lua-chatplus | Nat Goodspeed | |
2024-05-24 | Nat's ideas from PR #1547 | Nat Goodspeed | |
2024-05-24 | Mark script messages in compact mode too; code clean up | Mnikolenko Productengine | |
2024-05-23 | Remove commented-out methods in a couple LLEventTimer subclasses. | Nat Goodspeed | |
2024-05-23 | More vestigial whitespace fixes | Nat Goodspeed | |
2024-05-23 | Fix lingering trailing whitespace in llmainthreadtask.h. | Nat Goodspeed | |
2024-05-23 | Fix lingering trailing whitespace in lleventfilter.cpp. | Nat Goodspeed | |
2024-05-23 | Fix lingering trailing whitespace in lleventfilter.h. | Nat Goodspeed | |
2024-05-23 | Fix test program termination crash. | Nat Goodspeed | |
2024-05-23 | mac build fix | Maxim Nikolenko | |
2024-05-22 | add throttle for sending messages; add simple demo script | Mnikolenko Productengine | |
2024-05-22 | Add support for sending messages to Nearby chat from Lua script | Mnikolenko Productengine | |
2024-05-22 | WIP: Trying to diagnose and fix test program shutdown crash | Nat Goodspeed | |
2024-05-15 | Fix missing #include in lltextvalidate.cpp | Nat Goodspeed | |
2024-05-15 | Merge branch 'release/luau-scripting' into lua-timers after Maint X | Nat Goodspeed | |
2024-05-15 | Manual whitespace cleanup (fix_whitespace.py). | Nat Goodspeed | |
2024-05-15 | Merge commit 'e7eced3' into lua-timers for whitespace fixes. | Nat Goodspeed | |
2024-05-15 | Merge branch 'main' into release/luau-scripting for last Maint X fix. | Nat Goodspeed | |
2024-05-15 | #1457 Fix the tests on mac | Andrey Lihatskiy | |
(cherry picked from commit 82d713782529074b03720833038cb0df2b8bcffd) | |||
2024-05-15 | Merge branch 'main' into release/luau-scripting for Maint X release. | Nat Goodspeed | |
2024-05-15 | Manual whitespace fixes (fix_whitespace.py). | Nat Goodspeed | |
2024-05-15 | Merge commit 'e7eced3' into release/luau-scripting: whitespace fix. | Nat Goodspeed | |
2024-05-15 | Make leap.lua honor an "error" key in viewer response. | Nat Goodspeed | |
2024-05-14 | Increment viewer version to 7.1.8 | Nat Goodspeed | |
following promotion of secondlife/viewer #705: Maintenance X | |||
2024-05-14 | Merge DRTVWR-591-maint-X to main on promotion of secondlife/viewer #705: ↵ | Nat Goodspeed | |
Maintenance X | |||
2024-05-10 | Fix up a few #includes | Nat Goodspeed | |
2024-05-10 | Fix latent access violation in ~LLEventPump() if LLEventPumps gone. | Nat Goodspeed | |
Instead of making LLEventPumps an LLHandleProvider, and storing an LLHandle<LLEventPumps> in each LLEventPump instance, just make ~LLEventPump() query LLEventPumps::instanceExists() before calling instance(). | |||
2024-05-09 | Add "Timers" LLEventAPI, actually a LazyEventAPI, for LL::Timers. | Nat Goodspeed | |
Rename LL::Timers::scheduleRepeating() to scheduleEvery(). | |||
2024-05-09 | Bump up coroutine stack size: saw C00000FD test termination. | Nat Goodspeed | |
(cherry picked from commit dc0b3aed4782e4e4835fd6b9d59d1d70b78be4a7) | |||
2024-05-09 | Merge branch 'release/luau-scripting' into lua-timers | Nat Goodspeed | |
2024-05-08 | Tweak a couple things | Nat Goodspeed | |
2024-05-08 | Merge branch 'nat/cleanup-timers' into lua-timers. | Nat Goodspeed | |
In its GitHub PR build, the nat/cleanup-timers branch hit a (rare!) mathmisc_test failure. But since the test failure didn't report any of the randomly generated values that led to the failure, all we can do is shrug and rerun. Pull in the changeset from that branch that adds mathmisc_test reporting in case of another such failure. | |||
2024-05-08 | On mathmisc_test failure with random values, report values. | Nat Goodspeed | |
2024-05-08 | Merge branch 'nat/cleanup-timers' into lua-timers. | Nat Goodspeed | |
2024-05-08 | Bump up coroutine stack size: saw C00000FD test termination. | Nat Goodspeed | |