gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/lua-gsl.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua-gsl.h')
-rw-r--r--lua-gsl.h 17
1 files changed, 9 insertions, 8 deletions
diff --git a/lua-gsl.h b/lua-gsl.h
index b944acb1..b5f8de0e 100644
--- a/lua-gsl.h
+++ b/lua-gsl.h
@@ -6,20 +6,21 @@
#include "defs.h"
__BEGIN_DECLS
+
#include <lua.h>
-extern pthread_mutex_t gsl_shell_mutex[1];
-extern pthread_mutex_t gsl_shell_shutdown_mutex[1];
-extern volatile int gsl_shell_shutting_down;
+struct gsl_shell_state {
+ lua_State *L;
+ pthread_mutex_t exec_mutex;
+ pthread_mutex_t shutdown_mutex;
+ int is_shutting_down;
+};
-extern void gsl_shell_init ();
-extern void gsl_shell_close ();
+extern void gsl_shell_open (struct gsl_shell_state *gs);
+extern void gsl_shell_close (struct gsl_shell_state *gs);
extern int luaopen_gsl (lua_State *L);
__END_DECLS
-#define GSL_SHELL_LOCK() pthread_mutex_lock (gsl_shell_mutex)
-#define GSL_SHELL_UNLOCK() pthread_mutex_unlock (gsl_shell_mutex)
-
#endif
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月27日 08:19:41 +0000

AltStyle によって変換されたページ (->オリジナル) /