aboutsummaryrefslogtreecommitdiff
path: root/src/thread.h
blob: be9cadd5599056b228e83d2f83b93da417ba71ac (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
#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*);

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},
  {NULL,NULL}
};

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