Re: Simulating Threads in Eu

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

After thinking a lot, i can't find another way than sharing memory or
doing it by file... on windows i could start another eu4 instance and
send messages like one of my libs does, but i don't have too much
knowledge about this on linux.

Best Regards,
   Guillermo Bonvehi

--- jbrown105 at speedymail.org wrote:
> 
> I'm trying to figure out how to simulate
> threads in Eu, under Linux fork() does what I need
> but the problem is with sharing veriables.
> (I could use clone(), but besides being Linux-only
> (iow, clone() WILL NOT WORK FOR FREEBSD) it
> has the requirement that exu itself be re-entrant.
> I dont need exu to be re-entrant (I plan to use fork()
> to separate the "threads" from each other) but I do need
> a way for simulating the sharing of variables (i'll
> also make a preprocessor once i got the basic libs
> down to simpify the writing of the code). I could use
> shared memory, but there is no way to share sequences.
> Anyone have any ideas whatsoever? (I did try
> using files but that was too clumsy, I may
> look into it again if no one can give me
> a better alternative.)
> 
> TIA,
> jbrown
> 
> 
> 
> -- 
> http://fastmail.fm
>  - Ever wonder why we aren't named snailmail.sm? 
> 
> 
> 
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu