mirror of
https://github.com/openharmony/ace_engine_lite.git
synced 2026-07-21 00:35:30 -04:00
add ace simultor
This commit is contained in:
@@ -21,10 +21,9 @@
|
||||
#include "main_widget.h"
|
||||
#include "monitor.h"
|
||||
|
||||
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
const int32_t defaultHeapSize = 65536; // 64*1024,64kB
|
||||
QApplication app(argc, argv);
|
||||
OHOS::GraphicStartUp::Init();
|
||||
OHOS::Monitor::GetInstance()->InitHal();
|
||||
@@ -34,7 +33,7 @@ int main(int argc, char* argv[])
|
||||
OHOS::ACELite::DebuggerConfig jsDebuggerConfig;
|
||||
jsDebuggerConfig.startDebuggerServer = false;
|
||||
jsDebuggerConfig.snapshotMode = false;
|
||||
jsDebuggerConfig.heapSize = 65536; //64*1024,64kB
|
||||
jsDebuggerConfig.heapSize = defaultHeapSize;
|
||||
OHOS::ACELite::Debugger::GetInstance().ConfigEngineDebugger(jsDebuggerConfig);
|
||||
jsAbility.Launch("D:\\app\\div", "MyApplication", 0);
|
||||
jsAbility.Show();
|
||||
|
||||
@@ -27,7 +27,7 @@ void AsyncWorkManager::ExecAllAsyncWork()
|
||||
auto tempList = workList;
|
||||
workList.clear();
|
||||
mutex.unlock();
|
||||
for(auto work:tempList) {
|
||||
for (auto work:tempList) {
|
||||
work.first(work.second);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
#ifndef OHOS_ACELITE_ASYNCWORK_H
|
||||
#define OHOS_ACELITE_ASYNCWORK_H
|
||||
|
||||
#include "js_async_work.h"
|
||||
#include <list>
|
||||
#include <mutex>
|
||||
#include <utility>
|
||||
#include "js_async_work.h"
|
||||
|
||||
class AsyncWorkManager {
|
||||
public:
|
||||
|
||||
@@ -13,3 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef OHOS_ACELITE_HALSYSPARAM_H
|
||||
#define OHOS_ACELITE_HALSYSPARAM_H
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user