-rw-r--r-- | gsl-shell.h | 17 |
diff --git a/gsl-shell.h b/gsl-shell.h index af7088b5..3b575e98 100644 --- a/gsl-shell.h +++ b/gsl-shell.h @@ -1,6 +1,21 @@ #ifndef GSL_SHELL_INCLUDED #define GSL_SHELL_INCLUDED -extern int error_report (lua_State *L, int status); +#include "defs.h" +#include <pthread.h> + +__BEGIN_DECLS + +#include "lua.h" + +extern int error_report (lua_State *L, int status); +extern void gsl_shell_unref_plot (int id); + +extern pthread_mutex_t gsl_shell_mutex[1]; + +__END_DECLS + +#define GSL_SHELL_LOCK() pthread_mutex_lock (gsl_shell_mutex) +#define GSL_SHELL_UNLOCK() pthread_mutex_unlock (gsl_shell_mutex) #endif |