X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fos.h;h=50a4ad97c93a43c165770f285f00ff07cc6b3c6c;hb=7c8f828ba353472e27369a77574bca532147e458;hp=33300716103a7418f687f950855557f454379545;hpb=f55f9b851f59264d737d92c6277a87588c565d24;p=vpp.git diff --git a/src/vppinfra/os.h b/src/vppinfra/os.h index 33300716103..50a4ad97c93 100644 --- a/src/vppinfra/os.h +++ b/src/vppinfra/os.h @@ -44,7 +44,7 @@ /* External panic function. */ void os_panic (void); -/* External exit function analagous to unix exit. */ +/* External exit function analogous to unix exit. */ void os_exit (int code); /* External function to print a line. */ @@ -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));