{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaGPU/OpenCL.jl/issues/87","labels_url":"https://api.github.com/repos/JuliaGPU/OpenCL.jl/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/JuliaGPU/OpenCL.jl/issues/87/comments","events_url":"https://api.github.com/repos/JuliaGPU/OpenCL.jl/issues/87/events","html_url":"https://github.com/JuliaGPU/OpenCL.jl/pull/87","id":115633050,"number":87,"title":"Implements  event_notify using safe operations","user":{"login":"vchuravy","id":145258,"avatar_url":"https://avatars.githubusercontent.com/u/145258?v=3","gravatar_id":"","url":"https://api.github.com/users/vchuravy","html_url":"https://github.com/vchuravy","followers_url":"https://api.github.com/users/vchuravy/followers","following_url":"https://api.github.com/users/vchuravy/following{/other_user}","gists_url":"https://api.github.com/users/vchuravy/gists{/gist_id}","starred_url":"https://api.github.com/users/vchuravy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchuravy/subscriptions","organizations_url":"https://api.github.com/users/vchuravy/orgs","repos_url":"https://api.github.com/users/vchuravy/repos","events_url":"https://api.github.com/users/vchuravy/events{/privacy}","received_events_url":"https://api.github.com/users/vchuravy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-07T04:39:06Z","updated_at":"2015-11-10T05:16:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaGPU/OpenCL.jl/pulls/87","html_url":"https://github.com/JuliaGPU/OpenCL.jl/pull/87","diff_url":"https://github.com/JuliaGPU/OpenCL.jl/pull/87.diff","patch_url":"https://github.com/JuliaGPU/OpenCL.jl/pull/87.patch"},"body":"Fixes #86.\r\n\r\n\r\n````julia\r\njulia> using OpenCL\r\n\r\njulia> code_llvm(OpenCL.event_notify, (OpenCL.CL_event, OpenCL.CL_int,Ptr{Ptr{Void}}))\r\n\r\ndefine void @julia_event_notify_21517(i8*, i32, i8**) {\r\ntop:\r\n  %3 = load i8** %2, align 1\r\n  %4 = getelementptr i8** %2, i64 1\r\n  %5 = load i8** %4, align 1\r\n  %6 = bitcast i8* %5 to i8**\r\n  %7 = getelementptr i8** %2, i64 2\r\n  %8 = load i8** %7, align 1\r\n  %9 = bitcast i8* %8 to i32*\r\n  store i8* %0, i8** %6, align 1\r\n  store i32 %1, i32* %9, align 1\r\n  call void inttoptr (i64 140256579765648 to void (i8*)*)(i8* inreg %3)\r\n  ret void\r\n}\r\n````"},"comment":{"url":"https://api.github.com/repos/JuliaGPU/OpenCL.jl/issues/comments/155294164","html_url":"https://github.com/JuliaGPU/OpenCL.jl/pull/87#issuecomment-155294164","issue_url":"https://api.github.com/repos/JuliaGPU/OpenCL.jl/issues/87","id":155294164,"user":{"login":"vchuravy","id":145258,"avatar_url":"https://avatars.githubusercontent.com/u/145258?v=3","gravatar_id":"","url":"https://api.github.com/users/vchuravy","html_url":"https://github.com/vchuravy","followers_url":"https://api.github.com/users/vchuravy/followers","following_url":"https://api.github.com/users/vchuravy/following{/other_user}","gists_url":"https://api.github.com/users/vchuravy/gists{/gist_id}","starred_url":"https://api.github.com/users/vchuravy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchuravy/subscriptions","organizations_url":"https://api.github.com/users/vchuravy/orgs","repos_url":"https://api.github.com/users/vchuravy/repos","events_url":"https://api.github.com/users/vchuravy/events{/privacy}","received_events_url":"https://api.github.com/users/vchuravy/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T05:16:05Z","updated_at":"2015-11-10T05:16:05Z","body":"So rebased and squashed and I will start to fix the callback in context.jl, because baased on the docs [1] the callback can/will happen asynchronously.\r\n\r\n[1] https://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clCreateContext.html"}}