proxygen
folly::AtomicIntrusiveLinkedListHook< T > Struct Template Reference

#include <AtomicIntrusiveLinkedList.h>

Public Attributes

Tnext {nullptr}
 

Detailed Description

template<class T>
struct folly::AtomicIntrusiveLinkedListHook< T >

A very simple atomic single-linked list primitive.

Usage:

class MyClass { AtomicIntrusiveLinkedListHook<MyClass> hook_; }

AtomicIntrusiveLinkedList<MyClass, &MyClass::hook_> list; list.insert(&a); list.sweep([] (MyClass* c) { doSomething(c); }

Definition at line 39 of file AtomicIntrusiveLinkedList.h.

Member Data Documentation


The documentation for this struct was generated from the following file: