– Re: user events, CLEventList
In Reply To
On 03/11/2012 08:19 AM, notzed [via jogamp] wrote:
Ok thanks for the background. Yes I am barely touching the 1.1
stuff, and this was one case of it.
Basically I want to pass (CLEventList condition, CLEventList
event) as arguments to a function, and have that function
participate in the global CL event scheduling as if it were any
other enqueue() call: including the case where that function is
just (e.g. multi-threaded) Java code. This seems to be what user
events are for.
The only reason I could imagine not to expose it in that way would
be to hide the reference counting issues (e.g. passing ownership
yep makes sense. You could return a new list as workaround but thats
uncool from resource management perspective.
i noticed as i wrote that that the list basically works now like a
stack. I will take a look the next time i work on jocl if i can
implement a single-ended queue interface of the collection api and
add the missing pop/pull methods.
- - - -