Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class current_thread_id

Boost , Chapter 1. Boost.Log v2 , Attributes

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class current_thread_id

boost::log::attributes::current_thread_id — A class of an attribute that always returns the current thread identifier.

Synopsis

// In header: <boost/log/attributes/current_thread_id.hpp>

class current_thread_id : public attribute {
public:
  // types
  typedef thread_id value_type;  // A held attribute value type. 
  // member classes/structs/unions
  // Factory implementation.
  class impl : public attribute_value::impl {
  public:
    // public member functions
    virtual bool dispatch(type_dispatcher &);
    virtual intrusive_ptr< attribute_value::impl > detach_from_thread();
    virtual typeindex::type_index get_type() const;
  };
  // construct/copy/destruct
  current_thread_id();
  explicit current_thread_id(cast_source const &);
};

Description

[Note]Note

Этот атрибут может быть зарегистрирован глобально, он все равно вернет правильный идентификатор потока, независимо от того, какой поток издает запись журнала.

current_thread_id public construct/copy/destruct

  1. <
    current_thread_id();
    >

    Конструктор по умолчанию

  2. <
    explicitcurrent_thread_id(cast_sourceconst&source);
    >

    Конструктор для поддержки литья


PrevUpHomeNext

Статья Class current_thread_id раздела Chapter 1. Boost.Log v2 Attributes может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Attributes ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 19:53:50/0.0080101490020752/1