This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: Using LibFFI along with threads
- From: Tom Tromey <tromey at redhat dot com>
- To: "Hans Oesterholt-Dijkema" <hdnews at gawab dot com>
- Cc: libffi-discuss at sourceware dot org
- Date: Mon, 16 Jul 2007 16:42:10 -0700
- Subject: Re: Using LibFFI along with threads
- References: <eTCM9yTb.1184585721.5217690.hd@localhost>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Hans" == Hans Oesterholt-Dijkema <hdnews@gawab.com> writes:
Hans> Would it be possible to create an FFI object using libffi
Hans> that is called from within a thread?
I started looking at the source, but I think it would be simpler if
you explained what you're trying to do.
If you want to make a call via libffi and have the called function
make a new thread, then make the real ffi call in that new thread --
sure, this is possible. You can pass CIFs and argument arrays around
quite easily.
Tom