[plt-scheme] Re: Using LibFFI along with threads
Maybe I'll have a look on a recent version of Hans Boehms GC.
It is used on many platforms, being part of gcc(?).
Best wishes,
Hans
Eli Barzilay schreef:
> Matthew -- do you have an opinion on all this? -- On using Hans's
> code for implementing async calls.
>
> (The CGC code is probably not in great shape -- looks like it's not
> really used.)
>
>
> On Jul 17, Hans Oesterholt-Dijkema wrote:
>
>> Hmm. Let's see. I can test on the following platforms:
>>
>> OSX
>> Linux (slackware 8, suse 10)
>> Windows XP
>>
>> FreeBSD --> I can make a vmware image.
>>
>> Solaris: I can't test that.
>> AIX 5.3: I could test that.
>>
>> Most platforms support pthreads though.
>>
>> Note however the code in the 'gc' subdir:
>>
>> # include "gc_config_macros.h"
>> # include "private/gcconfig.h"
>> # include <stdio.h>
>>
>> int main()
>> {
>> # if defined(GC_USE_LD_WRAP)
>> printf("-Wl,--wrap -Wl,dlopen "
>> "-Wl,--wrap -Wl,pthread_create -Wl,--wrap -Wl,pthread_join "
>> "-Wl,--wrap -Wl,pthread_detach "
>> "-Wl,--wrap -Wl,pthread_sigmask -Wl,--wrap -Wl,sleep\n");
>> # endif
>> # if defined(GC_LINUX_THREADS) || defined(GC_IRIX_THREADS) \
>> || defined(GC_SOLARIS_PTHREADS) \
>> || defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)
>> printf("-lpthread\n");
>> # endif
>> # if defined(GC_FREEBSD_THREADS)
>> # if (__FREEBSD_version >= 500000)
>> printf("-lpthread\n");
>> # else
>> printf("-pthread\n");
>> # endif
>> # endif
>> # if defined(GC_NETBSD_THREADS)
>> printf("-lpthread -lrt\n");
>> # endif
>>
>> # if defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS)
>> printf("-lpthread -lrt\n");
>> # endif
>> # if defined(GC_SOLARIS_THREADS) && !defined(GC_SOLARIS_PTHREADS)
>> printf("-lthread -ldl\n");
>> # endif
>> # if defined(GC_WIN32_THREADS) && defined(CYGWIN32)
>> printf("-lpthread\n");
>> # endif
>> # if defined(GC_OSF1_THREADS)
>> printf("-pthread -lrt"); /* DOB: must be -pthread, not -lpthread */
>> # endif
>> /* You need GCC 3.0.3 to build this one! */
>> /* DG/UX native gcc doesnt know what "-pthread" is */
>> # if defined(GC_DGUX386_THREADS)
>> printf("-ldl -pthread\n");
>> # endif
>> return 0;
>>
>> }
>>
>> It all seems to be pthreads, except for standard windows of course.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20070718/ba7e9058/attachment.html>