];
}
+def ThreadStartT : TypeDecl<"thrd_start_t"> {
+ let Decl = "typedef int (*thrd_start_t)(void *);";
+}
+
def ThreadsAPI : PublicAPI<"threads.h"> {
+ let TypeDeclarations = [
+ ThreadStartT,
+ ];
+
let Enumerations = [
"mtx_plain",
"mtx_recursive",
"thrd_error",
"thrd_nomem",
];
+
+ let Functions = [
+ "thrd_create",
+ "thrd_join",
+ ];
}