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
ofproto-dpif-upcall: Add memory usage stats.
[sliver-openvswitch.git]
/
lib
/
ovs-thread.h
diff --git
a/lib/ovs-thread.h
b/lib/ovs-thread.h
index
f10bc28
..
c6a7142
100644
(file)
--- a/
lib/ovs-thread.h
+++ b/
lib/ovs-thread.h
@@
-449,7
+449,7
@@
bool ovsthread_once_start__(struct ovsthread_once *once)
OVS_TRY_LOCK(false, once->mutex);
static inline bool
OVS_TRY_LOCK(false, once->mutex);
static inline bool
-ovsthread_once_is_done__(
const
struct ovsthread_once *once)
+ovsthread_once_is_done__(struct ovsthread_once *once)
{
bool done;
{
bool done;
@@
-496,5
+496,9
@@
pid_t xfork_at(const char *where);
void forbid_forking(const char *reason);
bool may_fork(void);
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 */
#endif /* ovs-thread.h */