Re: [julia-users] How do I pass an event handle via ccall?

2015-09-29 Thread Chris Stook
That simple detailed explanation is exactly what I needed. Thank you.

Re: [julia-users] How do I pass an event handle via ccall?

2015-09-28 Thread Isaiah Norton
> > What is the difference between an event and a callback function? I > think I understand how a callback works. I thought an event caused a > callback, but that doesn't look like what's happening here. A callback is a function that is passed to some other routine, and called from that

Re: [julia-users] How do I pass an event handle via ccall?

2015-09-28 Thread Chris Stook
> > Thank you. > I have reviewed the suggested material. I'm probably in way over my head with this, but I'd like to learn, so I'm going to ask what is probably a novice question. What is the difference between an event and a callback function? I think I understand how a callback works. I

Re: [julia-users] How do I pass an event handle via ccall?

2015-09-28 Thread Yichao Yu
On Mon, Sep 28, 2015 at 7:33 AM, Chris Stook wrote: >> Thank you. > > > I have reviewed the suggested material. I'm probably in way over my head > with this, but I'd like to learn, so I'm going to ask what is probably a > novice question. > > What is the difference between

Re: [julia-users] How do I pass an event handle via ccall?

2015-09-27 Thread Spencer Russell
I’m not that familiar with the FDTI library, but it looks like you’ll need to write some platform-specific code (the PDF describes windows and linux code, not sure if the linux code is also supposed to work on OSX). So you’d use `ccall` to set up the handle as per the FTDI docs. One tricky bit

Re: [julia-users] How do I pass an event handle via ccall?

2015-09-27 Thread Chris Stook
Thanks! I'll read the section on SignalAsyncWork more carefully. - Chris

Re: [julia-users] How do I pass an event handle via ccall?

2015-09-27 Thread Isaiah Norton
See also: https://groups.google.com/d/msg/julia-users/dlAx4OY55eg/tqc9mXp32tEJ https://github.com/JuliaLang/julia/pull/12503 On Sun, Sep 27, 2015 at 5:41 PM, Chris Stook wrote: > Thanks! I'll read the section on SignalAsyncWork more carefully. > > - Chris > >

[julia-users] How do I pass an event handle via ccall?

2015-09-27 Thread Chris Stook
I am wrapping this c library: http://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer's_Guide(FT_71).pdf The function FT_SetEventNotification requires passing a handle to an event. The closest thing I see in julia is a Condition(). Would it make sense to pass a pointer to