git: drawterm

ref: 73fadf6cc5bb45316209d2b8e11d47a535dc8f5c
dir: /posix-port/tas.c/

View raw version
#include "u.h"
#include "libc.h"

int
tas(int *x)
{
	return __atomic_test_and_set(x, __ATOMIC_ACQ_REL);
}