Skip to content

Commit

Permalink
Add get pid function (#130)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #130

as above

Reviewed By: jayesh92

Differential Revision: D44921379

fbshipit-source-id: 311aa293b72191711168ab53df45b579d7c11bb1
  • Loading branch information
briancoutinho authored and facebook-github-bot committed Apr 13, 2023
1 parent 0fe6f50 commit 4490c69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hbt/src/common/Defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ inline pid_t gettid() noexcept {
return static_cast<pid_t>(syscall(SYS_gettid));
}

inline pid_t getpid() noexcept {
return static_cast<pid_t>(syscall(SYS_gettid));
}

#endif

// Branch hint macros. C++20 will include them as part of language.
Expand Down

0 comments on commit 4490c69

Please sign in to comment.