[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Public WebCL] Synchronous waitForEvents?



Hi Simon,

WebCLEvent.setCallback is pretty awkward if you're waiting on more than one event. I'd prefer to have an async form of waitForEvents with a signature similar to all other async functions in WebCL, like so:

  waitForEvents(WebCLEvent[] eventWaitList, optional WebCLCallback whenFinished, optional any userdata);

On related note, I've asked the Khronos webmaster to set up the Khronos public Bugzilla to accept WebCL related tickets, should be working later today. Here's a link: https://www.khronos.org/bugzilla/.

Best regards,
  Tomi

-----Original Message-----
From: owner-public_webcl@khronos.org [mailto:owner-public_webcl@khronos.org] On Behalf Of ext Simon Gibbs - Samsung
Sent: 15. huhtikuuta 2012 22:19
To: Jens Nockert; public_webcl@khronos.org
Subject: RE: [Public WebCL] Synchronous waitForEvents?


You're right, the reason was mainly to mirror the OpenCL API.
However, non-blocking use is also supported by OpenCL. In WebCL, one can use, for example, WebCLEvent.setCallback(...)

Simon Gibbs

-----Original Message-----
From: owner-public_webcl@khronos.org [mailto:owner-public_webcl@khronos.org] On Behalf Of Jens Nockert
Sent: Sunday, April 15, 2012 11:51 AM
To: public_webcl@khronos.org
Subject: [Public WebCL] Synchronous waitForEvents?


What is the reason for waitForEvents being blocking except for mirroring the OpenCL API?
Inside of a normal browser context (non-worker) it seems like a bad idea to me, shouldn't it instead
a) Have a non-blocking variant waitForEvents(WebCLEvent[] eventWaitList, callback) ?
b) Have the blocking variant limited to workers (or similar) ?

-- Jens Nockert



-----------------------------------------------------------
You are currently subscribed to public_webcl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with the following command in the body of your email:
unsubscribe public_webcl
-----------------------------------------------------------


-----------------------------------------------------------
You are currently subscribed to public_webcl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with the following command in the body of your email:
unsubscribe public_webcl
-----------------------------------------------------------


-----------------------------------------------------------
You are currently subscribed to public_webcl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webcl
-----------------------------------------------------------