Skip to content
Permalink
Browse files

replace tabs with spaces to maintain a cindent style.

  • Loading branch information...
AndrewTsao committed Aug 30, 2012
1 parent f36c77e commit d016e25b699e97a1fc8ee50d133949580e9e9c06
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/utils.h
@@ -60,12 +60,12 @@ typedef struct {
int refCount; /* a count of all pending request to know strength */
lua_State* L; /* L and ref together form a reference to the userdata */
int threadref; /* if handle is created in a coroutine(not main thread), threadref is
the reference to the coroutine in the Lua registery.
we release the reference when handle closed.
if handle is created in the main thread, threadref is LUA_NOREF.
we must hold the coroutine, because in some cases(see issue #319) that the coroutine
referenced by nothing and would collected by gc, then uv's callback touch an
invalid pointer. */
the reference to the coroutine in the Lua registery.
we release the reference when handle closed.
if handle is created in the main thread, threadref is LUA_NOREF.
we must hold the coroutine, because in some cases(see issue #319) that the coroutine
referenced by nothing and would collected by gc, then uv's callback touch an
invalid pointer. */
int ref; /* ref is null when refCount is 0 meaning we're weak */
const char* type;
} luv_handle_t;

0 comments on commit d016e25

Please sign in to comment.
You can’t perform that action at this time.