Skip to content

Instantly share code, notes, and snippets.

View gist:6fda6c37e7844cab987a4b50871f04ee
### Keybase proof
I hereby claim:
* I am quentusrex on github.
* I am quentusrex (https://keybase.io/quentusrex) on keybase.
* I have a public key ASAmNHsqDpgBdyZFDi8cXs_ZoI-dxqVi1goLzMmJ0qXlygo
To claim this, I am signing this object:
View keybase.md

Keybase proof

I hereby claim:

  • I am quentusrex on github.
  • I am quentusrex (https://keybase.io/quentusrex) on keybase.
  • I have a public key whose fingerprint is A9A4 D367 42AD 60EB A0E3 C00A 27D0 6530 72CE 2E58

To claim this, I am signing this object:

View hiredis pubsub racecondition test
#include <stdio.h>
#include <hiredis.h>
#include <pthread.h>
#include <semaphore.h>
#define NUM_THREADS 50
// Globals
char *server = "192.168.100.219";
int port = 6379, ready = 0;