Re: Multitasking Preview Release

new topic     » goto parent     » topic index » view thread      » older message » newer message

codepilot Gmail Account wrote:
> 
> with tdll you could have a situation where there is two enterences
> into a euphoria dll so I would use c_func for anything thats a
> euphoria dll.
> (ROB) Can two or more threads run on euphoria dlls without crashing,
> cause I really doubt it?
> Now If you really wanted to you should use tdll in that euphoria code
> that made the dll and you wouldn't have to worry about it blocking.
> Maybe later, small well-thought-out steps, we don't want to trip.
> 
> Dan
> 
> On 9/22/05, Robert Craig <guest at rapideuphoria.com> wrote:
> >
> >
> > posted by: Robert Craig <rds at RapidEuphoria.com>
> >
> > Juergen Luethje wrote:
> > > I wrote a plugin (a Windows DLL) for Total Commander. Sometimes, when
> > > the DLL reads/writes huge files, obviously Total Commander is not able
> > > to update the optical appearance of its main window, until the DLL has
> > > finished its work.
> > >
> > > Can I do something to solve the problem now, without the new
> > > multitasking system? Can the new multitasking system help to write
> > > "more cooperative" DLLs?
> >
> > You either need some kind of non-blocking I/O, or you need
> > TDLL (Daniel Kluss) which creates a new O/S thread and returns
> > immediately. I assume it will be safe to run the Euphoria interpreter
> > in one O/S thread, and some DLL code in another.
> >
> > I'm not sure yet how multitasking is going to work with
> > Euphoria-coded DLLs. Main Euphoria programs and Euphoria-coded DLLs
> > don't even share the same routine ids. Probably a Euphoria DLL
> > could run its own tasks independent from the main program.
> >
> > Regards,
> >   Rob Craig
> >   Rapid Deployment Software
> >   <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a>
> >
> >

Cool little library you got there Dan, can you add support for the "cdcel"
calling convention, and port it for Linux/FreeBSD? Because I have "zero"
understanding of machine level coding with Euphoria, I cannot finish this myself.
Nevertheless this little library could be very useful to me in various cases, and
I'm ready to vote for it upon completion. smile.


Regards,
Vincent

----------------------------------------------
     ___	      __________      ___
    /__/\            /__________\    |\ _\
    \::\'\          //::::::::::\\   |'|::|
     \::\'\        //:::_::::_:::\\  |'|::|
      \::\'\      //::/  |::|  \::\\ |'|::|
       \::\'\    //::/   |::|   \::\\|'|::|
        \::\'\__//::/    |::|    \::\|'|::|
         \::\','/::/     |::|     \::\\|::|
          \::\_/::/      |::|      \::\|::|
           \::,::/       |::|       \:::::|
            \___/        |__|        \____|

 	                 .``.
		         ',,'

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu