rippled
CurrentThreadName.h
1 //------------------------------------------------------------------------------
2 /*
3  This file is part of Beast: https://github.com/vinniefalco/Beast
4  Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
5 
6  Portions of this file are from JUCE.
7  Copyright (c) 2013 - Raw Material Software Ltd.
8  Please visit http://www.juce.com
9 
10  Permission to use, copy, modify, and/or distribute this software for any
11  purpose with or without fee is hereby granted, provided that the above
12  copyright notice and this permission notice appear in all copies.
13 
14  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
15  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
16  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
17  ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
20  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 */
22 //==============================================================================
23 
24 #ifndef BEAST_CORE_CURRENT_THREAD_NAME_H_INCLUDED
25 #define BEAST_CORE_CURRENT_THREAD_NAME_H_INCLUDED
26 
27 #include <string>
28 #include <string_view>
29 
30 namespace beast {
31 
35 void
37 
48 
49 } // namespace beast
50 
51 #endif
std::string
STL class.
std::string_view
STL class.
beast::getCurrentThreadName
std::string getCurrentThreadName()
Returns the name of the caller thread.
Definition: CurrentThreadName.cpp:113
beast::setCurrentThreadName
void setCurrentThreadName(std::string_view name)
Changes the name of the caller thread.
Definition: CurrentThreadName.cpp:119
string_view
beast
Definition: base_uint.h:641
string