Skip to content

Commit

Permalink
replace tabs with spaces to maintain a cindent style.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewTsao committed Aug 30, 2012
1 parent f36c77e commit d016e25
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/utils.h
Expand Up @@ -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;
Expand Down

0 comments on commit d016e25

Please sign in to comment.