0ad/source/network
Yves 7acdde5c86 Changes tests to use global g_ScriptRuntime instead of creating a new JSRuntime for each test.
The tests crashed on my Debian systems but not on my Ubuntu system.
The crash happened in line 142 of SpiderMonkey's ThreadLocal.h.

I know that I had to use a workarounnd for contexts to avoid destroying
the context that was created first. I also had in mind that in newer
versions a JS_Init function got introduced which presumably solves this
kind of issues.
Based on this experience I assumed runtimes could have a similar problem
and this patch indeed fixes the issues.
Unfortunately the correct usage of JSRuntimes in that regard is not
documented.
There's only a rater misterious comment in JSAPI.h which hasn't been
cleared up so far and is most likely completely outdated
(https://bugzilla.mozilla.org/show_bug.cgi?id=992641).

This was SVN commit r14995.
2014-04-25 21:19:51 +00:00
..
tests Changes tests to use global g_ScriptRuntime instead of creating a new JSRuntime for each test. 2014-04-25 21:19:51 +00:00
fsm.cpp Fixes hypothetical mem leak in network code (and an error in Cppcheck), patch by Riemer, fixes #2122 2013-10-10 23:46:42 +00:00
fsm.h Let CFsm actions override the default state transition 2011-10-27 14:10:55 +00:00
NetClient.cpp Send messages in queue before closing connection, patch by boeseRaupe. Fixes #2420 2014-02-05 02:44:25 +00:00
NetClient.h Multiplayer lobby based on the XmPP protocol. Special thanks to Philip, alpha123, scythetwirler, and anyone else who has helped build, debug or test the lobby. 2013-11-07 20:07:24 +00:00
NetFileTransfer.cpp Fix printf argument types 2011-11-13 18:31:06 +00:00
NetFileTransfer.h Fix tests, and warnings, and non-PCH build 2011-12-23 13:01:29 +00:00
NetHost.cpp split debug_assert into ENSURE and ASSERT as discussed in a previous meeting. 2011-04-30 13:01:45 +00:00
NetHost.h # Support rejoining multiplayer games after disconnection. 2011-10-27 16:46:48 +00:00
NetMessage.cpp # Support rejoining multiplayer games after disconnection. 2011-10-27 16:46:48 +00:00
NetMessage.h # Support rejoining multiplayer games after disconnection. 2011-10-27 16:46:48 +00:00
NetMessages.h Implement a basic observer mode. Any player which joins a multiplayer game but is not assigned a player slot automatically becomes an observer. Refs #69 2014-03-16 23:29:27 +00:00
NetMessageSim.cpp Fixes an assertion when DEBUG_SERIALIZER_ANNOTATE is set to 1 and you click on "Host Game" from the main menu. 2014-02-22 14:30:29 +00:00
NetServer.cpp Fix more then one observer by allowing a game to have multiple players with the -1 ID. 2014-03-29 15:09:42 +00:00
NetServer.h Add compile time flag to disable use of miniupnpc. 2013-12-18 16:08:56 +00:00
NetSession.cpp Detect and fix printf signedness errors. Fixes #1086, #1087. 2012-01-01 16:43:10 +00:00
NetSession.h # Support rejoining multiplayer games after disconnection. 2011-10-27 16:46:48 +00:00
NetStats.cpp Remove a load of implicit CStr type conversions, since they're error-prone and can cause silent data loss. 2011-02-17 20:08:20 +00:00
NetStats.h Run network server in a separate thread, to minimise latency. 2010-10-31 22:00:28 +00:00
NetTurnManager.cpp Send messages in queue before closing connection, patch by boeseRaupe. Fixes #2420 2014-02-05 02:44:25 +00:00
NetTurnManager.h Send messages in queue before closing connection, patch by boeseRaupe. Fixes #2420 2014-02-05 02:44:25 +00:00
NMTCreator.h # Basic experimental multiplayer integration with new simulation system. 2010-05-20 00:59:01 +00:00
Serialization.h # Refactored the networking code, and redesigned the game setup screen. 2010-06-30 21:41:04 +00:00
StringConverters.h Provide JSON-compatible string escaping 2011-11-04 01:18:34 +00:00