summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/os.h')
-rw-r--r--src/vppinfra/os.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vppinfra/os.h b/src/vppinfra/os.h
index 3ec214e29b1..50a4ad97c93 100644
--- a/src/vppinfra/os.h
+++ b/src/vppinfra/os.h
@@ -64,6 +64,12 @@ os_get_thread_index (void)
return __os_thread_index;
}
+static_always_inline void
+os_set_thread_index (uword thread_index)
+{
+ __os_thread_index = thread_index;
+}
+
static_always_inline uword
os_get_cpu_number (void) __attribute__ ((deprecated));