Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 0.442 kb
#include "scribl.h"
#include <stdio.h>
#include <unistd.h> /* sleep(3) */
int main(int argc, char **argv)
{
int i;
struct scribl_counter *counter;
scribl_init(3);
counter = scribl_new_counter("test");
for (i = 0; i < 10; i++) {
printf("incrementing foo:bar from main thread, i = %d\n", i);
scribl_incr_counter(counter, "foo:bar", 1);
sleep(1);
}
/* Not reached */
scribl_free_counter(counter);
scribl_exit();
return 0;
}
Jump to Line
Something went wrong with that request. Please try again.