diff options
| author | Rider Linden <rider@lindenlab.com> | 2015-11-10 13:45:30 -0800 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2015-11-10 13:45:30 -0800 |
| commit | 059925eafb66dc0e2d8ef9c113ca8980a34c655d (patch) | |
| tree | 4189394ddc4257f9e448ed878d0b1b15766fa7a4 /indra/llplugin/llpluginprocesschild.h | |
| parent | a743d939071fbdbbf619f2e282419623da932322 (diff) | |
Added code to initiate controlled shutdown of plugins with timeouts for misbeahving plugin.
Diffstat (limited to 'indra/llplugin/llpluginprocesschild.h')
| -rwxr-xr-x | indra/llplugin/llpluginprocesschild.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llplugin/llpluginprocesschild.h b/indra/llplugin/llpluginprocesschild.h index 531422e792..b916cc9528 100755 --- a/indra/llplugin/llpluginprocesschild.h +++ b/indra/llplugin/llpluginprocesschild.h @@ -80,6 +80,7 @@ private: STATE_PLUGIN_LOADED, // plugin library has been loaded STATE_PLUGIN_INITIALIZING, // plugin is processing init message STATE_RUNNING, // steady state (processing messages) + STATE_SHUTDOWNREQ, // Parent has requested a shutdown. STATE_UNLOADING, // plugin has sent shutdown_response and needs to be unloaded STATE_UNLOADED, // plugin has been unloaded STATE_ERROR, // generic bailout state @@ -101,12 +102,12 @@ private: sharedMemoryRegionsType mSharedMemoryRegions; LLTimer mHeartbeat; - F64 mSleepTime; - F64 mCPUElapsed; + F64 mSleepTime; + F64 mCPUElapsed; bool mBlockingRequest; bool mBlockingResponseReceived; std::queue<std::string> mMessageQueue; - + LLTimer mWaitGoodbye; void deliverQueuedMessages(); }; |
