view libstdc++-v3/src/c++17/default_resource.h @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

// This is only in a header so we can use the system_header pragma,
// to suppress the warning caused by using a reserved init_priority.
#pragma GCC system_header

#if ATOMIC_POINTER_LOCK_FREE == 2 || defined(__GTHREAD_MUTEX_INIT)
# error "This file should not be included for this build"
#endif

struct {
  atomic_mem_res obj = &newdel_res.obj;
} default_res __attribute__ ((init_priority (100)));