git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: Refactor gathering CPU core count
[sliver-openvswitch.git]
/
lib
/
ovs-thread.h
diff --git
a/lib/ovs-thread.h
b/lib/ovs-thread.h
index
7f3195d
..
c6a7142
100644
(file)
--- a/
lib/ovs-thread.h
+++ b/
lib/ovs-thread.h
@@
-496,5
+496,9
@@
pid_t xfork_at(const char *where);
void forbid_forking(const char *reason);
bool may_fork(void);
+
\f
+/* Useful functions related to threading. */
+
+unsigned int count_cpu_cores(void);
#endif /* ovs-thread.h */