Skip to content

Thread::gettid() does not return the ID of the object it is invoked on #1831

@marcuschangarm

Description

@marcuschangarm
Thread* t1 = new Thread(...);

// get new thread ID
osThreadId id1 = t1->gettid();

// get current thread ID
osThreadId id2 = Thread::gettid();

id1 should be the id of the new thread, t1. Instead id1 == id2.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions