Skip to content

Commit

Permalink
Inline qvi_gettid().
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel K. Gutierrez <samuel@lanl.gov>
  • Loading branch information
samuelkgutierrez committed Jul 18, 2024
1 parent 6413a38 commit 4af96a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/qvi-utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ qvi_strerr(int ec)
return strerror_r(ec, sb, sizeof(sb));
}

pid_t
qvi_gettid(void) {
return gettid();
}

double
qvi_time(void)
{
Expand Down
15 changes: 9 additions & 6 deletions src/qvi-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,19 @@ extern "C" {
#endif

/**
*
* See gettid(2) for details.
*/
cstr_t
qvi_strerr(int ec);
static inline pid_t
qvi_gettid(void)
{
return gettid();
}

/**
* See gettid(2) for details.
*
*/
pid_t
qvi_gettid(void);
cstr_t
qvi_strerr(int ec);

/**
*
Expand Down

0 comments on commit 4af96a1

Please sign in to comment.