LCOV - code coverage report
Current view: top level - Src/Utils - SpUtils.cpp (source / functions) Hit Total Coverage
Test: Coverage example Lines: 5 5 100.0 %
Date: 2021-12-02 17:21:05 Functions: 2 2 100.0 %

          Line data    Source code
       1             : #include "SpUtils.hpp"
       2             : 
       3             : /** The id of the "current" calling thread */
       4             : thread_local long int GlobalThreadId = 0;
       5             : 
       6             : /** Return the curren thread id */
       7        1084 : long int SpUtils::GetThreadId(){
       8        1084 :     return GlobalThreadId;
       9             : }
      10             : 
      11             : /** Set the thread id (should be call by the runtime */
      12         152 : void SpUtils::SetThreadId(const long int inThreadId){
      13         152 :     GlobalThreadId = inThreadId;
      14         152 : }

Generated by: LCOV version 1.14