bug fixes and test2

This commit is contained in:
elvis
2022-04-23 17:43:38 +02:00
parent 11a5dae9e9
commit 4fe23200bc
37 changed files with 66 additions and 11 deletions

View File

@ -174,7 +174,7 @@ int main(int argc, char *argv[]) {
queueT *queue = createQueue(maxFiles, maxSize);
// creo la lista dei client in attesa a una lock
waiting_t *waiting;
waiting_t *waiting = NULL;
// creo la threadpool
threadpool_t *pool = NULL;
@ -186,7 +186,7 @@ int main(int argc, char *argv[]) {
}
// scrivo sul log
n = snprintf(buf, sizeof(buf), "Creato threadpool di dimensione %d e lending size %d\n", threadsInPool, pendingSize);
n = snprintf(buf, sizeof(buf), "Creato threadpool di dimensione %d e pending size %d\n", threadsInPool, pendingSize);
if( n<0 ) {
perror("snprintf");
goto _cleanup;