NCBI C++ ToolKit
Macros
ncbi_once.h File Reference
#include "ncbi_config.h"
#include <corelib/ncbiatomic.h>
#include "ncbi_priv.h"
+ Include dependency graph for ncbi_once.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define CORE_Once(once)   (!NCBI_SwapPointers((once), (void*) 1))
 Return non-zero (true) if "*once" had a value of NULL, and set the value to non-NULL regardless (best effort: atomically). More...
 

Macro Definition Documentation

◆ CORE_Once

#define CORE_Once (   once)    (!NCBI_SwapPointers((once), (void*) 1))

Return non-zero (true) if "*once" had a value of NULL, and set the value to non-NULL regardless (best effort: atomically).

Return 0 (false) otherwise.

Definition at line 47 of file ncbi_once.h.

Modified on Fri Sep 20 14:57:26 2024 by modify_doxy.py rev. 669887