From 143f6008f19675899bc63a75293a16a6fb3f7192 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 15 Nov 2001 14:32:29 +0000
Subject: [PATCH] Each sbbs_t instance gets its own JS runtime to resolve
 concurrent GC blocking and potentially other multi-threaded issues.

---
 src/sbbs3/sbbs.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sbbs3/sbbs.h b/src/sbbs3/sbbs.h
index f69fc5e9fb..5d3885bcf9 100644
--- a/src/sbbs3/sbbs.h
+++ b/src/sbbs3/sbbs.h
@@ -178,10 +178,11 @@ public:
 
 #ifdef JAVASCRIPT
 
+	JSRuntime*	js_runtime;
 	JSContext*	js_cx;
 	JSObject*	js_glob;
 	long		js_execfile(char *fname);
-	bool		js_initcx(void);
+	bool		js_init(void);
 
 #endif
 
-- 
GitLab