aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lanes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lanes.c b/src/lanes.c
index f2e8aa7..8edf47b 100644
--- a/src/lanes.c
+++ b/src/lanes.c
@@ -1757,6 +1757,10 @@ LUAG_FUNC( thread_new )
1757 STACK_GROW( L, 2); 1757 STACK_GROW( L, 2);
1758 STACK_GROW( L2, 3); 1758 STACK_GROW( L2, 3);
1759 1759
1760 // give a default "Lua" name to the thread to see VM name in Decoda debugger
1761 lua_pushfstring( L2, "Lane #%p", L2);
1762 lua_setglobal( L2, "decoda_name");
1763
1760 ASSERT_L( lua_gettop(L2) == 0); 1764 ASSERT_L( lua_gettop(L2) == 0);
1761 1765
1762 // package.path 1766 // package.path