File: error_state.h

package info (click to toggle)
level-zero 1.26.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,468 kB
  • sloc: cpp: 130,327; ansic: 16,197; python: 9,824; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#include <unordered_map>
#include <string>
#include <thread>
#include <mutex>

namespace error_state
{
    extern std::unordered_map<std::thread::id, std::string> errorDescs;
    extern std::mutex errorDescsMutex;

    void setErrorDesc(const std::string &desc);

    void getErrorDesc(const char **ppString);
}