summaryrefslogtreecommitdiff
path: root/indra/llplugin/llpluginprocessparent.h
diff options
context:
space:
mode:
authorRye Mutt <rye@alchemyviewer.org>2024-07-22 09:10:19 -0400
committerGitHub <noreply@github.com>2024-07-22 16:10:19 +0300
commitac2f20fc0393371d41296267c654df8cffdeedb4 (patch)
tree0c563bfb6a72974b472fd1737ff72592f628639c /indra/llplugin/llpluginprocessparent.h
parent3c7fc595fa974df80552ea5d7c738997a1ab3f51 (diff)
Use thread pool to create plugin processes to reduce created/destroyed threads and fix various crashes (#2079)
Diffstat (limited to 'indra/llplugin/llpluginprocessparent.h')
-rw-r--r--indra/llplugin/llpluginprocessparent.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/indra/llplugin/llpluginprocessparent.h b/indra/llplugin/llpluginprocessparent.h
index d1c4933d81..334f1411af 100644
--- a/indra/llplugin/llpluginprocessparent.h
+++ b/indra/llplugin/llpluginprocessparent.h
@@ -69,11 +69,6 @@ public:
const std::string &plugin_filename,
bool debug);
- // Creates a process
- // returns true if process already exists or if created,
- // false if failed to create
- bool createPluginProcess();
-
void idle(void);
// returns true if the plugin is on its way to steady state
@@ -168,15 +163,13 @@ private:
bool accept();
- void clearProcessCreationThread();
-
LLSocket::ptr_t mListenSocket;
LLSocket::ptr_t mSocket;
U32 mBoundPort;
LLProcess::Params mProcessParams;
LLProcessPtr mProcess;
- LLThread *pProcessCreationThread;
+ bool mProcessCreationRequested = false;
std::string mPluginFile;
std::string mPluginDir;