Skip to content

Commit

Permalink
export g_tid for dynamic library
Browse files Browse the repository at this point in the history
  • Loading branch information
idealvin committed Oct 21, 2023
1 parent 6f59cbc commit 80a27d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/co/co/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ typedef std::lock_guard<std::mutex> mutex_guard;
namespace co {
namespace xx {

extern __thread uint32 g_tid;
__coapi extern __thread uint32 g_tid;
__coapi uint32 thread_id();

#ifdef _WIN32
Expand Down

0 comments on commit 80a27d1

Please sign in to comment.