31.5. slapi_counter_increment()

Atomically increments the counter value up by one (1) and returns the new value.
Syntax

#include "slapi-plugin.h"
PRUint64 slapi_counter_increment(Slapi_Counter *counter);

Parameters

This function takes the following parameter:

counter The counter to increment.
Returns

The function returns the value of the counter (the current count) after the counter has been incremented.