[webkit-help] Calling JSObjectCallAsFunction from a worker

demallien demallien at me.com
Tue Dec 13 07:24:03 PST 2011

Hi Ben,

The short answer is no - you need to call JSObjectCallAsFunction from the same thread that you created you JSContextRef in.


Message: 1
Date: Mon, 12 Dec 2011 21:00:25 +0000
From: Ben Short <ben at benshort.co.uk>
To: webkit-help at lists.webkit.org
Subject: [webkit-help] Calling JSObjectCallAsFunction from a worker
<CAOiKr=tSF4ieDRmsFsNNUGGgJWd72yeBaDqVV0GJm6zfi3K1rw at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1


I have created a custom javascript object using the JavaScriptCore
API. My object allows listeners to be registered with it. I need to
call these listeners on various events from a worker thread that is
created when the object is instantiated.

Is it safe to call the JSObjectCallAsFunction function from a worker thread?


Ben Short

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20111213/4fa0902f/attachment.html>

More information about the webkit-help mailing list