Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
platform.hh File Reference

Classes

class AsyncBlockingQueue< Value >
class ScopedSemaphore
class Stopwatch
class TaskRegistry
struct TaskStatus

Namespaces

namespace Ase
namespace Ase::AnsiColors

Macros

#defineASE_CFENCE
#defineASE_LFENCE
#defineASE_MFENCE
#defineASE_SFENCE

Typedefs

usingThreadId = std::thread::id

Enumerations

enum class Colorize : int8 { NEVER , ALWAYS , AUTO }
enum Colors {
  NONE , RESET , BOLD , BOLD_OFF ,
  ITALICS , ITALICS_OFF , UNDERLINE , UNDERLINE_OFF ,
  INVERSE , INVERSE_OFF , STRIKETHROUGH , STRIKETHROUGH_OFF ,
  FG_BLACK , FG_RED , FG_GREEN , FG_YELLOW ,
  FG_BLUE , FG_MAGENTA , FG_CYAN , FG_WHITE ,
  FG_DEFAULT , BG_BLACK , BG_RED , BG_GREEN ,
  BG_YELLOW , BG_BLUE , BG_MAGENTA , BG_CYAN ,
  BG_WHITE , BG_DEFAULT
}
enum class RPath {
  PREFIXDIR , INSTALLDIR , LOCALEDIR , LIBDIR ,
  DEMODIR , LADSPADIRS
}

Functions

const char *()_ (const char *string)
const char *()_ (const char *string, const char *plural, int64_t n)
std::string()_ (const std::string &string)
std::string()_ (const std::string &string, const std::string &plural, int64_t n)
const char *()__format_arg__ (2)))
Stringanklang_home_dir (const String &subdir)
std::stringanklang_runpath (RPath rpath, const String &segment)
Stringapplication_name ()
voidapplication_name_init (String desktopname)
const char *ase_build_id ()
const char *ase_version ()
voidbreakpoint ()
std::stringcolor (Colors acolor, Colors c1, Colors c2, Colors c3, Colors c4, Colors c5, Colors c6)
const char *color_code (Colors acolor)
boolcolorize_tty (int fd)
voidconfigure (Colorize colorize)
std::stringcpu_arch ()
Stringcpu_info ()
std::stringexecutable_name () ASE_PURE
std::stringexecutable_path ()
uint64monotonic_counter ()
Stringprogram_alias ()
voidprogram_alias_init (String customname)
Stringprogram_cwd ()
boolsched_fast_priority (int tid)
intsched_get_priority (int tid)
boolsched_set_priority (int tid, int nicelevel)
Stringthis_thread_get_name ()
intthis_thread_getpid ()
intthis_thread_gettid ()
boolthis_thread_is_ase ()
intthis_thread_online_cpus ()
ThreadIdthis_thread_self ()
voidthis_thread_set_name (const String &name16chars)
uint64timestamp_benchmark ()
Stringtimestamp_format (uint64 stamp, uint maxlength)
uint64timestamp_realtime ()
uint64timestamp_resolution ()
uint64timestamp_startup ()
intuser_id ()
Stringuser_name ()
Stringuser_real_name ()

Variables

const char *constase_gettext_domain
const intase_major_version
const intase_micro_version
const intase_minor_version
const char *constase_sharedir
const char *constase_version_long
const char *constase_version_short

Macro Definition Documentation

ASE_SFENCE

#define ASE_SFENCE

Store Fence - prevent processor (and compiler) from reordering stores (write barrier).

ASE_LFENCE

#define ASE_LFENCE

Load Fence - prevent processor (and compiler) from reordering loads (read barrier).

ASE_MFENCE

#define ASE_MFENCE

Memory Fence - prevent processor (and compiler) from reordering loads/stores (read/write barrier), see also std::atomic_thread_fence().

ASE_CFENCE

#define ASE_CFENCE

Compiler Fence, prevent compiler from reordering non-volatile loads/stores, see also std::atomic_signal_fence().