[PATCH 1.1] Interlock declaration: Required for applying common_3 patch
John Gray <jgray@...>
This must be applied with the common_3 file as it contains the Interlocked_destroy function declaration.
Index: common/c_cpp/src/c/wombat/wInterlocked.h =================================================================== RCS file: /cvsroot/products/common/c_cpp/src/c/wombat/Attic/wInterlocked.h,v retrieving revision 1.1.2.6.8.5 diff -c -p -r1.1.2.6.8.5 wInterlocked.h *** common/c_cpp/src/c/wombat/wInterlocked.h 17 Jan 2012 13:48:53 -0000 1.1.2.6.8.5 --- common/c_cpp/src/c/wombat/wInterlocked.h 26 Jan 2012 17:24:48 -0000 *************** adec32 (uint32_t* ptr) *** 69,74 **** --- 69,97 ---- typedef uint32_t wInterlockedInt;
/** + * This function will initialise a wInterlockedInt. + * + * @param[in] value Pointer to the item to be initialized. + * @return 0 on success. + */ + + WCOMMONINLINE int wInterlocked_initialize(wInterlockedInt *value) + { + return 0; + } + + /** + * This function will destroy a wInterlockedInt. + * + * @param[in] value Pointer to the item to be destroyed. + * @return 0 on success. + */ + WCOMMONINLINE int wInterlocked_destroy(wInterlockedInt *value) + { + return 0; + } + + /** * This function will atomically decrement a 32-bit integer value. * * @param[in] value Pointer to the value to be decremented.
Signed-off-by: John Gray <jgray@...> |
|