共用方式為


unbounded_buffer::enqueue 方法

將項目加入至 unbounded_buffer 傳訊區塊。

bool enqueue(
   _Type const& _Item
);

參數

  • _Item
    要新增的項目。

傳回值

如果接受項目則為 true,否則為 false

需求

標頭: agents.h

Namespace: 並行存取

請參閱

參考

unbounded_buffer 類別