Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include <worklets/WorkletRuntime/RuntimeData.h>

const std::string uiRuntimeName{"UI"};
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#pragma once

#include <string>

/**
* Unused, but kept for possible future use.
*/
constexpr uint64_t rnRuntimeId{0};
constexpr uint64_t uiRuntimeId{1};
extern const std::string uiRuntimeName;
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

namespace worklets {

const std::string uiRuntimeName{"UI"};

std::shared_ptr<WorkletRuntime> RuntimeManager::getRuntime(uint64_t runtimeId) {
std::shared_lock lock(weakRuntimesMutex_);
if (weakRuntimes_.contains(runtimeId)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <jsi/jsi.h>
#include <worklets/Tools/UIScheduler.h>
#include <worklets/WorkletRuntime/RuntimeData.h>
#include <worklets/WorkletRuntime/WorkletRuntime.h>

#include <atomic>
Expand All @@ -18,13 +19,6 @@ namespace worklets {
*/
class JSIWorkletsModuleProxy;

/**
* Unused, but kept for possible future use.
*/
constexpr uint64_t rnRuntimeId{0};
constexpr uint64_t uiRuntimeId{1};
extern const std::string uiRuntimeName;

class RuntimeManager {
public:
std::shared_ptr<WorkletRuntime> getRuntime(uint64_t runtimeId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <worklets/SharedItems/Shareables.h>
#include <worklets/Tools/AsyncQueueImpl.h>
#include <worklets/Tools/JSScheduler.h>
#include <worklets/WorkletRuntime/RuntimeData.h>

#include <memory>
#include <string>
Expand Down
Loading