aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.c
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2012-10-23 13:05:57 +0300
committerBenoit Germain <bnt.germain@gmail.com>2012-10-23 13:05:57 +0300
commit1f0c73686741cbabbcd995ffd1db27bcc3a0d0a5 (patch)
treeb81040d55c5d3d724e695e10ab7512fc443a3985 /src/lanes.c
parentb675270e0879c383b1f6b72d2a73525809499f50 (diff)
downloadlanes-1f0c73686741cbabbcd995ffd1db27bcc3a0d0a5.tar.gz
lanes-1f0c73686741cbabbcd995ffd1db27bcc3a0d0a5.tar.bz2
lanes-1f0c73686741cbabbcd995ffd1db27bcc3a0d0a5.zip
Always set "decoda_name" global in a new Lane.
Diffstat (limited to 'src/lanes.c')
-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