File: error_state.h

package info (click to toggle)
level-zero 1.28.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,308 kB
  • sloc: cpp: 149,246; ansic: 16,655; python: 12,807; makefile: 5
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);
}