[Defconapi] multi-threading
spooq
spoooq at gmail.com
Mon Aug 10 06:49:15 CDT 2009
Sure, this is the method I intend to use as well, but I need to walk
before I can run ;)
2009/8/10 Jesper Mathiassen <jesper.mathiassen at gmail.com>:
> Using the Java API myself I have no issues at all using threads, however I
> haven't looked into wether it actually uses native threads or just jvm
> internal threads. But as mentioned, any use of the API (with a few
> exceptions ) while in a non-main thread just blows up in my head :-)
> I use singleton queues of info-blocks and commands which threads add to and
> the main update function executes and empties, this works pretty decently.
>
> - Jesper
>
> 2009/8/9 spooq <spoooq at gmail.com>
>>
>> Ok, looks like it is me doing something wrong then. Every time I tried
>> to access some memory from another thread, I was getting garbage. I'll
>> have a look tomorrow evening.
>>
>> Thanks!
>>
>> 2009/8/9 Robin Baumgarten <robin.baumgarten at gmail.com>:
>> > Hi Luke,
>> >
>> > I haven't focused on multithreading while developing the API, nor do I
>> > have
>> > a great expertise on multithreading in C++, so I'm afraid I can't help
>> > you
>> > much there. Defcon has been compiled in Multi-threaded DLL (/MD) mode.
>> > Also note that you should not call any API functions from other threads
>> > (or
>> > more exactly, only call API methods while the main thread is executing
>> > the
>> > Update() function).
>> >
>> > Robin
>> >
>> > 2009/8/9 spooq <spoooq at gmail.com>
>> >>
>> >> Hi all,
>> >>
>> >> I was trying to get some background threads running this afternoon and
>> >> was having trouble. Is it because defcon.exe is compiled without
>> >> threading support? If so, is this on purpose?
>> >>
>> >> If it is just me mucking up the implementation (quite likely), then
>> >> I'll have another bash at getting pthreads or native threads to work.
>> >>
>> >> Cheers,
>> >> Luke
>> >> _______________________________________________
>> >> Defconapi mailing list
>> >> Defconapi at lists.introversion.co.uk
>> >> http://lists.introversion.co.uk/listinfo/defconapi
>> >
>> >
>> _______________________________________________
>> Defconapi mailing list
>> Defconapi at lists.introversion.co.uk
>> http://lists.introversion.co.uk/listinfo/defconapi
>
>
More information about the Defconapi
mailing list