public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
88f397a80441b12965862b8ed48013ec3241d7bd blob 601 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright (c) 2025 Red Hat
 * Author: Laurent Vivier <lvivier@redhat.com>
 */

#ifndef THREADING_H
#define THREADING_H

#define MAX_NUM_THREADS 32

#define THREADING_ID_DEFAULT	0

void threading_init(void);
int threading_worker_set(unsigned int threadid,
			 void (*worker)(void *, int, struct epoll_event *),
			 void *opaque);
int threading_epollfd(unsigned int threadid);
void threading_start_thread(unsigned int threadid);
void threading_stop_thread(unsigned int threadid);
bool threading_is_active(unsigned int threadid);

#endif /* THREADING_H */
debug log:

solving 88f397a80441 ...
found 88f397a80441 in https://archives.passt.top/passt-dev/20260731164628.3556997-3-lvivier@redhat.com/

applying [1/1] https://archives.passt.top/passt-dev/20260731164628.3556997-3-lvivier@redhat.com/
diff --git a/threading.h b/threading.h
new file mode 100644
index 000000000000..88f397a80441

Checking patch threading.h...
Applied patch threading.h cleanly.

index at:
100644 88f397a80441b12965862b8ed48013ec3241d7bd	threading.h

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).