Skip to content

Commit

Permalink
ThreadId namespace change
Browse files Browse the repository at this point in the history
  • Loading branch information
HaseenaSainul committed Sep 5, 2024
1 parent 3ac87d2 commit 16579f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion JsonGenerator/source/json_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def cpp_class(self):

@property
def cpp_native_type(self):
return "Core::thread_id"
return "::thread_id"


class JsonRefCounted():
Expand Down
2 changes: 1 addition & 1 deletion ProxyStubGenerator/CppParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def IsFixed(self):

class ThreadId(BuiltinInteger):
def __init__(self):
BuiltinInteger.__init__(self, fixed_size=True, name="Core::thread_id")
BuiltinInteger.__init__(self, fixed_size=True, name="::thread_id")

def IsFixed(self):
return self.fixed
Expand Down
3 changes: 2 additions & 1 deletion ProxyStubGenerator/default.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ namespace std {
typedef __stubgen_undetermined_integer clock_t;
}

typedef __stubgen_thread_id thread_id;

namespace __FRAMEWORK_NAMESPACE__ {

namespace ProxyStub {
Expand All @@ -53,7 +55,6 @@ namespace __FRAMEWORK_NAMESPACE__ {

namespace Core {
typedef __stubgen_instance_id instance_id;
typedef __stubgen_thread_id thread_id;
typedef __stubgen_time Time;
typedef uint32_t hresult;

Expand Down

0 comments on commit 16579f4

Please sign in to comment.