Skip to content

Commit

Permalink
FIX Fixed sd1 callback functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
abalkin committed Oct 2, 2017
1 parent 999e105 commit 58d0385
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/async.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ function process_julia_events(d::I_)
try
n = Base.process_events(false)
catch err
println(err)
Core.println(err)
end
#k(0, "1 string $n")
write(notification_pipe.in, 'e')
ccall(:jl_breakpoint, Void, (Any,), d)
0
I_(0)
end
const process_julia_events_c = cfunction(process_julia_events, Int, (I_, ))
const process_julia_events_c = cfunction(process_julia_events, I_, (I_, ))

function process_julia_notification(d::I_)
c = read(notification_pipe.out, 1)
#k(0, "1 enlist\"$c\"")
process_julia_events(d)
end
const process_julia_notification_c = cfunction(process_julia_notification,
Int, (I_, ))
I_, (I_, ))

const notification_pipe = Pipe()
function start_julia()
Expand Down

0 comments on commit 58d0385

Please sign in to comment.