//https://github.com/cloudwu/skynet/blob/master/skynet-src/rwlock.h
struct rwlock {
- Oct 15 Tue 2013 12:48
rwlock.h
- Oct 15 Tue 2013 12:40
semaphore test - part 2
#include<stdio.h>
#include<pthread.h>
- Oct 15 Tue 2013 12:39
semaphore test - part 1
#include<stdio.h>
#include<pthread.h>
- Oct 15 Tue 2013 12:35
pthread_cond_wait
#include<stdio.h>
#include<pthread.h>
- Oct 15 Tue 2013 12:31
shared memory-part2
#include <fcntl.h>
#include <sys/stat.h>
- Oct 15 Tue 2013 12:28
shared memory---part1
#include <fcntl.h>
#include <sys/stat.h>
- Oct 15 Tue 2013 12:17
cpu affinity of POSIX
gcc testsync2.c -D_GNU_SOURCE -march=native -lpthread -o testsync2.exe
- Oct 15 Tue 2013 11:59
sequential lock
- Oct 15 Tue 2013 11:51
Multi Producer Multi Consumer with Compare-And-Swap
- Oct 15 Tue 2013 11:44
Intrusive linked list + skip linked list