28 SEASTAR_MODULE_EXPORT_BEGIN
30 using shard_id = unsigned;
32 SEASTAR_MODULE_EXPORT_END
36 #ifdef SEASTAR_BUILD_SHARED_LIBS
37 shard_id* this_shard_id_ptr() noexcept;
39 inline shard_id* this_shard_id_ptr() noexcept {
40 static thread_local shard_id g_this_shard_id;
41 return &g_this_shard_id;
47 SEASTAR_MODULE_EXPORT_BEGIN
51 return *internal::this_shard_id_ptr();
54 SEASTAR_MODULE_EXPORT_END
Seastar API namespace.
Definition: abort_on_ebadf.hh:26
SEASTAR_MODULE_EXPORT_BEGIN shard_id this_shard_id() noexcept
Returns shard_id of the of the current shard.
Definition: shard_id.hh:50