Skip to Main Content
Intel Threading Building Blocks
book

Intel Threading Building Blocks

by James Reinders
July 2007
Intermediate to advanced content levelIntermediate to advanced
332 pages
10h 4m
English
O'Reilly Media, Inc.
Content preview from Intel Threading Building Blocks

Whole-Table Operations

These operations affect an entire table. Do not concurrently invoke them on the same table.

concurrent_hash_map()

Effects: constructs an empty table.

concurrent_hash_map( const concurrent_hash_map& table )

Effects: copies a table. The table being copied may have map operations running on it concurrently.

~concurrent_hash_map()

Effects: removes all items from the table and destroys it. This method is not safe to execute concurrently with other methods on the same concurrent_hash_map.

concurrent_hash_map&operator=( concurrent_hash_map& source )

Effects: if the source table and destination table (this) are distinct, clear the destination table and copy all key-value pairs from the source table to the destination table. Otherwise, do nothing.

Returns: reference to the destination table.

void clear()

Effects: erases all key-value pairs from the table.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Intel® Xeon Phi™ Coprocessor Architecture and Tools: The Guide for Application Developers

Intel® Xeon Phi™ Coprocessor Architecture and Tools: The Guide for Application Developers

Rezaur Rahman

Publisher Resources

ISBN: 9780596514808Errata Page