上面的例子程式碼主執行緒中執行thread.new(“test_thread”)建立一個新的執行緒,同時建立一個lua_State,在這個lua環境中裝入test_thread.lua並啟動它返回的函式proc。用c ...
確定! 回上一頁