File: futex.h

package info (click to toggle)
trinity 1.9%2Bgit20230109.87f1530-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,116 kB
  • sloc: ansic: 33,463; sh: 536; makefile: 163
file content (14 lines) | stat: -rw-r--r-- 221 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <sys/types.h>
#include <stdint.h>
#include "types.h"

struct __lock {
	uint32_t futex;
	pid_t owner_pid;
};

void create_futexes(void);
u32 * get_futex(void);
struct __lock * get_random_lock(void);