Skip to content

Sandbox to play with different pthread threading features exposed by libuv

License

Notifications You must be signed in to change notification settings

thlorenz/block-thread-libuv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libuv-threading

Sandbox to play with different pthread threading features exposed by libuv

Simple Version, One main file

git checkout simple-main
make main
./bin/main /dev/random

Reader + Writer Classes

git checkout reader+writer 
make main
./bin/main /dev/random

Reader + Writer combined into a Writable Class

git checkout writable 
make main
./bin/main /dev/random

Writable JSON SAX parser

This parser supports pushing chunks to it asynchronously via the writable.write. It will block the reader thread if it runs out of chunks and waits until the main thread pushes more data.

git checkout json-parser 
make main
./bin/main <path>/<to>/<file.json> 

License

MIT

About

Sandbox to play with different pthread threading features exposed by libuv

Resources

License

Stars

Watchers

Forks

Packages

No packages published