MySQL  8.0.19
Source Code Documentation
ut Namespace Reference


class  bool_scope_guard_t
 A RAII-style class, which sets a given boolean to true in constructor, and to false in destructor, effectively making sure that it is true for the duration of the object lifetime/scope. More...


using ostringstream = std::basic_ostringstream< char, std::char_traits< char >, ut_allocator< char > >
 Specialization of basic_ostringstream which uses ut_allocator. More...
template<typename T >
using vector = std::vector< T, ut_allocator< T > >
 Specialization of vector which uses ut_allocator. More...


ulong spin_wait_pause_multiplier = 50
 The current value of @innodb_spin_wait_pause_multiplier. More...

Typedef Documentation

◆ ostringstream

using ut::ostringstream = typedef std::basic_ostringstream<char, std::char_traits<char>, ut_allocator<char> >

Specialization of basic_ostringstream which uses ut_allocator.

Please note that it's .str() method returns std::basic_string which is not std::string, so it has similar API (in particular .c_str()), but you can't assign it to regular, std::string.

◆ vector

template<typename T >
using ut::vector = typedef std::vector<T, ut_allocator<T> >

Specialization of vector which uses ut_allocator.

Variable Documentation

◆ spin_wait_pause_multiplier

ulong ut::spin_wait_pause_multiplier = 50

The current value of @innodb_spin_wait_pause_multiplier.

Determines how many PAUSE instructions to emit for each requested unit of delay when calling ut_delay(delay). The default value of 50 causes delay*50 PAUSES which was equivalent to delay microseconds on 100 MHz Pentium + Visual C++. Useful on processors which have "non-standard" duration of a single PAUSE instruction - one can compensate for longer PAUSES by setting the spin_wait_pause_multiplier to a smaller value on such machine