all: sig_mutex.o sig_timedmutex.oinclude ../../../rtl.mkhelp: @echo "/**************************************************************/" @echo "/**************************************************************/" @echo "/* In this program, various threads are blocked on a mutex. */" @echo "/* While they are blocked on the mutex, the master threads */" @echo "/* sends signals to them. At this point blocked threads */" @echo "/* must execute the signal handler and remain blocked. */" @echo "/* There is also, a version for timed waits on mutexes. */" @echo "/**************************************************************/" @echo "/**************************************************************/" clean: rm -f *.otest: all help @echo "First we remove any existing rtl-modules" @echo "You may see error warnings from \"make\" - ignore them" @echo "Type <return> to continue" @read junk -rmmod sound -rmmod rt_process -rmmod frank_module (cd ../../../; scripts/rmrtl) @echo "Now insert the fifo and scheduler" @echo "Type <return> to continue" @read junk (cd ../../../; scripts/insrtl) @echo "Now start the real-time tasks module" @echo "Type <return> to continue" @read junk @insmod sig_mutex.o @sleep 4 @echo "Now let's stop the application" @echo "Type <return> to finish" @read junk @rmmod sig_mutexinclude ../../../Rules.make