diff options
| author | Lou Berger <lberger@labn.net> | 2018-09-22 15:02:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-22 15:02:09 -0400 |
| commit | d127c61aebbce56183d17e5631dffac7a11e84bc (patch) | |
| tree | b8dee298fa3e49df79593697998fbfbc93d93f28 /lib/frr_pthread.h | |
| parent | bf07c256a3a9f2517ce0038291a348cb8dbf3979 (diff) | |
| parent | c5d580fbc76c41a3355aef8dcd4aa387ea9c58c2 (diff) | |
Merge pull request #3010 from opensourcerouting/no-frr-thread-id
lib: frr_pthread minor simplification
Diffstat (limited to 'lib/frr_pthread.h')
| -rw-r--r-- | lib/frr_pthread.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/frr_pthread.h b/lib/frr_pthread.h index 732e2925fe..b9e60511d5 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 @@ -218,22 +210,6 @@ int frr_pthread_stop(struct frr_pthread *fpt, void **result); /* Stops all frr_pthread's. */ 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 |
