search for: tpool_barri

Displaying 1 result from an estimated 1 matches for "tpool_barri".

Did you mean: tpool_barrier
2012 Mar 11
2
[patch] Threading support in ssh-agent
...Thread { + pthread_t tid; + pthread_mutex_t lock; /* is locked while thread is serving request. Used as barrier. */ + struct AuthRequestQueue* queue; +}; + +struct TPool { + struct Thread threads[MAX_THREADS]; + size_t num_threads; + struct AuthRequestQueue queue; +}; + +struct TPool tpool; + +void tpool_barrier(struct TPool*); + +#else + +#define tpool_barrier(a) do {} while(0) + +#endif + static void close_socket(SocketEntry *e) { @@ -154,7 +206,7 @@ int i; for (i = 0; i <=2; i++) { - TAILQ_INIT(&idtable[i].idlist); + TAILQ_INIT(&(idtable[i].idlist)); idtable[i].nentries = 0;...