aboutsummaryrefslogtreecommitdiff
path: root/src/thread.h
blob: 0b3a27d179e17b9ccb35a4ee1f527b6a4f958bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "lua.h"
#include "config.h"

int l_async(lua_State*);
int l_tlock(lua_State*);
int l_tunlock(lua_State*);
int l_buffer(lua_State*);
int l_testcopy(lua_State*);
int l_mutex(lua_State*);

void lib_thread_clean();

#define clean_lullaby_thread luaI_nothing

static const luaL_Reg thread_function_list [] = {
  {"async",l_async},
  {"lock",l_tlock},
  {"unlock",l_tunlock},
  {"buffer",l_buffer},
  {"testcopy",l_testcopy},
  {"mutex", l_mutex},
  {NULL,NULL}
};

static struct config thread_config[] = {
  {.type = c_none}
};