[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: why write lua_unlock before lua_lock?
- From: "bit bull" <bitbull.cn@...>
- Date: Wed, 27 Jun 2007 23:30:49 +0800
Hello, I read lua sources at tonight. I saw this code piece:
ldump.c line 33-35:
lua_unlock(D->L);
D->status=(*D->writer)(D->L,b,size,D->data);
lua_lock(D->L);
why lua_unlock before lua_lock?
I find lua_lock and lua_unlock defined in Llimits.h:
Llimits.h 109-112:
#ifndef lua_lock
#define lua_lock(L) ((void) 0)
#define lua_unlock(L) ((void) 0)
#endif
I think lua_lock and lua_unlock is unusable, for new version?
who can let me know something about this?
THKS.sorry for my poor english.I am chinese.