Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Push error handler afresh each time lua_pcall is used | Kahrl | 2015-08-27 |
| | | | | | Fixes "double fault" / "error in error handling" messages (issue #1423) and instead shows a complete backtrace. | ||
* | Clean up threading | ShadowNinja | 2015-08-23 |
| | | | | | | | | | | | | | | | | | | | | * Rename everything. * Strip J prefix. * Change UpperCamelCase functions to lowerCamelCase. * Remove global (!) semaphore count mutex on OSX. * Remove semaphore count getter (unused, unsafe, depended on internal API functions on Windows, and used a hack on OSX). * Add `Atomic<type>`. * Make `Thread` handle thread names. * Add support for C++11 multi-threading. * Combine pthread and win32 sources. * Remove `ThreadStarted` (unused, unneeded). * Move some includes from the headers to the sources. * Move all of `Event` into its header (allows inlining with no new includes). * Make `Event` use `Semaphore` (except on Windows). * Move some porting functions into `Thread`. * Integrate logging with `Thread`. * Add threading test. | ||
* | Fix code style of async API | ShadowNinja | 2014-04-27 |
| | |||
* | Remove dependency on marshal and many other async changes | ShadowNinja | 2014-04-27 |
This makes a number of changes: * Remove the dependency on marshal by using string.dump and loadstring. * Use lua_tolstring rather than having Lua functions pass string lengths to C++. * Move lua_api/l_async_events.* to cpp_api/s_async.*, where it belongs. * Make AsyncWorkerThread a child of ScriptApiBase, this removes some duplicate functionality. * Don't wait for async threads to shut down. (Is this safe? Might result in corruption if the thread is writing to a file.) * Pop more unused items from the stack * Code style fixes * Other misc changes |