code: drawterm

Download patch

ref: d7620e8d528a87a3d6cf7285a839d52d4f705771
parent: ea04c68f2bd28d6c75d21688a07ac6b817192b67
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Oct 3 21:22:35 EDT 2024

missed tas.c opportunity

--- /dev/null
+++ b/posix-port/tas.c
@@ -1,0 +1,8 @@
+#include "u.h"
+#include "libc.h"
+
+int
+tas(int *x)
+{
+	return __atomic_test_and_set(x, __ATOMIC_ACQ_REL);
+}