Commit b8395d36 authored by Roland Haas's avatar Roland Haas
Browse files

mpitar: remove async_writer test code

parent 3c48b9f0
#include "async_writer.hh"
#include <cstdio>
#include <cstring>
#include <unistd.h>
int main(void)
{
{
async_writer writer(stdout);
writer.write(strdup("foo\n"), 4);
fprintf(stderr, "available: %zu\n", writer.select(100));
sleep(1);
fprintf(stderr, "available: %zu\n", writer.select(100));
writer.seek(1);
writer.write(strdup("aa"), 2);
fprintf(stderr, "available: %zu\n", writer.select(100));
writer.finalize();
fprintf(stderr, "available: %zu\n", writer.select(100));
}
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment