add ace simultor

This commit is contained in:
qhily999
2021-04-06 10:29:26 +08:00
parent f915fc9824
commit d0d474d73c
4 changed files with 8 additions and 5 deletions
+2 -3
View File
@@ -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