Skip to content

Instantly share code, notes, and snippets.

View omalinov's full-sized avatar
🛠️
Hoping for the best

omalinov omalinov

🛠️
Hoping for the best
View GitHub Profile
@bodokaiser
bodokaiser / pool.c
Last active July 3, 2023 13:42
Simplistic thread pool implementation with pthread and libuv QUEUE
#include "queue.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#define THREADS 3
/**
* Task queue.