13 lines
317 B
C
13 lines
317 B
C
// This is NEW CODE to implement the sync operations supported by other C compilers
|
|
#ifndef _SYNC_H
|
|
#define _SYNC_H
|
|
|
|
#ifdef _ZCC
|
|
void __sync_synchronize();
|
|
unsigned int __sync_lock_test_and_set(unsigned int* p, unsigned int v);
|
|
void __sync_lock_release(unsigned int* p);
|
|
#endif
|
|
|
|
// From ifndef at top of file:
|
|
#endif
|