Re: Single instance module and multithreading

From: Alex <>
Date: Sun, 22 Feb 2009 17:11:04 -0800 (PST)

So, does it work for you when you actually invoke
(..)? Nothing happens over here if I call or
textadept.print(..) from the received(text) function.

Why would you think that this function runs in the main thread? After
all, you pass it as an argument to a lane.

- Alex

On Feb 23, 1:56 am, mitchell <> wrote:
> Alex,
> > Your proof of concept works because you do not actually try to open
> > the file in TA. ;)
> The 'recieved' function is in the main Textadept thread. Any text
> passed to it can be executed via loadstring. The parallel thread knows
> nothing about the textadept table or anything else for that matter.
> All it focuses on is reading data from a socket (such as a Lua command
> like '"foo")') and passes it to the callback
> function for processing.
Received on Sun 22 Feb 2009 - 20:11:04 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:37:31 EST