|Cc:||mario, fhd||Blocked By:|
|Blocking:||Platform:||Unknown / Cross platform|
Description (last modified by sergz)
Regarding other files using v8
Implementation of platform specific interfaces
It also seems better to have platform specific implementation based on Foundation Framework for iOS and others because it allows to perform some operations in a safer or more efficient way.
As well as it's not a good idea to create a new thread for setTimeout for example and a new thread for each short background operation, it's better to use some pool of threads for such tasks.
As a result, the library has the following restriction: the client should use it only from one thread with the message loop. It's possible to have several instances of JsEngine and others in the same thread as well as to have several instances in different threads with message loops, but each instance should be accessed only from its thread.
It's a static library which can be linked either with OSX-application or iOS-application. It's not possible to create a Universal Framework (IIRC Universal Framework requires to expose only Objective-C headers), however it's possible to have some kind of universal static library.
Objective-C vs C++
It seems so far there is no need to wrap our C++ code by Objective-C, the client can easily use it via Objective-C++.
What to change
Here will be the list of particular issues.