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

Go to the source code of this file.


 Contains all the Google Cloud C++ Library APIs.


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::SetTerminateHandler (TerminateHandler f)
 Install terminate handler and get the old one atomically. More...
TerminateHandler google::cloud::GetTerminateHandler ()
 Get the currently installed handler. More...
void google::cloud::Terminate (char const *msg)
 Invoke the currently installed handler. More...