git: drawterm

ref: 7fee327ee530409dee0d36cb258927934ba97aff
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);
}