renamed test_and_set into atomic_test_and_set

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4342 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2003-08-20 02:35:24 +00:00
parent b4e05c0eb8
commit 5f993f93ff

View File

@ -26,7 +26,6 @@
#include <elf.h>
#include <Errors.h>
#include <kerrors.h>
#include <atomic.h>
#include <fd.h>
#include <fs/node_monitor.h>
@ -1311,7 +1310,7 @@ vfs_get_cache_ptr(void *vnode)
int
vfs_set_cache_ptr(void *vnode, void *cache)
{
if (test_and_set((int32 *)&(((struct vnode *)vnode)->cache), (int32)cache, 0) == 0)
if (atomic_test_and_set((int32 *)&(((struct vnode *)vnode)->cache), (int32)cache, 0) == 0)
return 0;
return -1;