diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-12 21:23:52 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-09-19 22:01:46 +0200 |
commit | 1ac267a2d9b422c26d3aba0a1b1cab91fbc3394d (patch) | |
tree | 7951892f101d99dbc2dba7a415d9c33b7ef8619d /lib/frr_pthread.h | |
parent | Merge pull request #3041 from qlyoung/doc-cli-dep-period-length (diff) | |
download | frr-1ac267a2d9b422c26d3aba0a1b1cab91fbc3394d.tar.xz frr-1ac267a2d9b422c26d3aba0a1b1cab91fbc3394d.zip |
lib: remove frr_pthread->id
All I can see is an unneccessary complication. If there's some purpose
here it needs to be documented...
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/frr_pthread.h')
-rw-r--r-- | lib/frr_pthread.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/frr_pthread.h b/lib/frr_pthread.h index 732e2925f..2a41de6d4 100644 --- a/lib/frr_pthread.h +++ b/lib/frr_pthread.h @@ -34,7 +34,6 @@ struct frr_pthread; struct frr_pthread_attr; struct frr_pthread_attr { - _Atomic uint32_t id; void *(*start)(void *); int (*stop)(struct frr_pthread *, void **); }; @@ -155,13 +154,6 @@ int frr_pthread_set_name(struct frr_pthread *fpt, const char *name, void frr_pthread_destroy(struct frr_pthread *fpt); /* - * Gets an existing frr_pthread by its id. - * - * @return frr_thread associated with the provided id, or NULL on error - */ -struct frr_pthread *frr_pthread_get(uint32_t id); - -/* * Creates a new pthread and binds it to a frr_pthread. * * This function is a wrapper for pthread_create. The first parameter is the @@ -221,19 +213,6 @@ void frr_pthread_stop_all(void); /* Yields the current thread of execution */ void frr_pthread_yield(void); -/* - * Returns a unique identifier for use with frr_pthread_new(). - * - * Internally, this is an integer that increments after each call to this - * function. Because the number of pthreads created should never exceed INT_MAX - * during the life of the program, there is no overflow protection. If by - * chance this function returns an ID which is already in use, - * frr_pthread_new() will fail when it is provided. - * - * @return unique identifier - */ -uint32_t frr_pthread_get_id(void); - #ifndef HAVE_PTHREAD_CONDATTR_SETCLOCK #define pthread_condattr_setclock(A, B) #endif |