Skip to content

Instantly share code, notes, and snippets.

View glaudiston's full-sized avatar

Glaudiston Gomes da Silva glaudiston

View GitHub Profile
@glaudiston
glaudiston / main.bkp.c
Last active September 16, 2016 21:50
C Promises
// ref https://computing.llnl.gov/tutorials/pthreads/#WhyPthreads
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
int promises=0;
typedef void *( FunctionPointerNoArgs )();
typedef void *( *FunctionPointer )( void * );
typedef void *( *PromiseBaseFunctionPointer )( FunctionPointerNoArgs *, FunctionPointerNoArgs * );