4 // A class that hands out fwmarks from a given range in a thread-safe fashion.
5 // If the range is empty, it returns 0.
12 // Limits are [start, end>. Numbers are 16-bit, so above 65535 do not make sense.
13 MarkPool(int start, int end);
16 void release_mark(int mark);
21 pthread_mutex_t mutex;
22 std::queue<int> free_marks;
25 #endif // !defined(_MARKPOOL_H)