#include <my_global.h>#include <my_pthread.h>#include <my_atomic.h>Include dependency graph for my_atomic.c:

Go to the source code of this file.
Defines | |
| #define | static extern |
Functions | |
| int | my_atomic_initialize () |
| #define static extern |
Definition at line 25 of file my_atomic.c.
| int my_atomic_initialize | ( | ) |
Definition at line 37 of file my_atomic.c.
References DBUG_ASSERT, intptr, MY_ATOMIC_NOT_1CPU, MY_ATOMIC_OK, and my_getncpus().
Referenced by main().
00038 { 00039 DBUG_ASSERT(sizeof(intptr) == sizeof(void *)); 00040 /* currently the only thing worth checking is SMP/UP issue */ 00041 #ifdef MY_ATOMIC_MODE_DUMMY 00042 return my_getncpus() == 1 ? MY_ATOMIC_OK : MY_ATOMIC_NOT_1CPU; 00043 #else 00044 return MY_ATOMIC_OK; 00045 #endif 00046 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.4.7

