Google Cloud C++ Client  0.4.0
C++ Client Library for Google Cloud Platform
Namespaces
terminate_handler.cc File Reference
#include "google/cloud/terminate_handler.h"
#include <iostream>
#include <mutex>

Go to the source code of this file.

Namespaces

 google
 
 google::cloud
 Contains all the Google Cloud C++ Library APIs.
 
 google::cloud::v0
 The Google Cloud C++ Library inlined, versioned namespace.
 

Functions

Control behaviour on unrecoverable errors.

The following APIs are google::cloud counterpart for std::{set,get}_terminate functions.

If exceptions are not enabled via GOOGLE_CLOUD_CPP_HAVE_EXCEPTIONS, calling any function from throw_delegate.h will result in calling the handler installed via this API. By default, a call to std::abort() is used.

TerminateHandler google::cloud::v0::SetTerminateHandler (TerminateHandler f)
 Install terminate handler and get the old one atomically. More...
 
TerminateHandler google::cloud::v0::GetTerminateHandler ()
 Get the currently installed handler. More...
 
void google::cloud::v0::Terminate (const char *msg)
 Invoke the currently installed handler. More...