Hey,

Small tutorial here that writes integers into a ringbuffer, and the JACK thread reads them out:
http://harryhaaren.blogspot.com/2011/11/tutorial-jack-ringbuffers.html

Comments / improvements welcomed! -Harry