abarth at webkit.org
Mon Jun 28 01:33:23 PDT 2010
I'm not sure if there's a short-cut, but you essentially want a
Certainly doable but likely difficult.
On Mon, Jun 28, 2010 at 1:30 AM, Srinivasa Rao Edara
<srini.webkit at gmail.com> wrote:
> As part of my project, we need to implement custom JS objects using
> I am seeking help in implementing in implementing one of the requirement and
> So, the requirement is, We need to add custom JS object , lets say
> "MyObject" and this object has one method wait() which should block the
> control until its previously requested operation completes.
> in Detail,
> function success()
> function failure()
> MyObject.postMessage(success,failure,"hello, How r u?");
> x= 10+1;
> Here, MyObject.wait() should resume only after either of its success or
> failure callback is executed. The statement "x=10+1" would be executed only
> after either success or failure callback invoked.
> So my question here is, is this really possible to stop execution at one
> place and execute some thing else and resume back to previous execution
> I have tried this using two threads by blocking the wait using mutex and
> calling success/failure callback using another thread but it app crashing.
> Can you please suggest me what are the possible ways to achieve the above
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
More information about the webkit-dev