outline 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. acd is composed of four procs
  2. wineventproc (win.c:/^wineventproc)
  3. reads acme window events, sends them along w->cevent.
  4. cdstatusproc (mmc.c:/^cdstatusproc)
  5. reads cd status once per second, sending
  6. status updates to d->cstatus.
  7. detects disk changes, sends new tocs to d->ctocdisp.
  8. cddbproc (cddb.c:/^cddbproc)
  9. reads tocs from d->cdbreq, if it finds
  10. translations in the cddb, sends new tocs to d->cdbreply.
  11. eventwatcher (main.c:/^eventwatcher)
  12. the main event loop.
  13. reads status from d->cstatus.
  14. reads events from w->cevent.
  15. reads new tocs to display from d->ctocdisp.
  16. sends new tocs to translate to d->cdbreq.
  17. reads new translated tocs from d->cdbreply.
  18. an interesting bug in the original design:
  19. both cdstatusproc and the eventwatcher proc
  20. issue scsi commands. (the eventwatcher responds to
  21. things such as Play, Stop, etc., as well as advancing the track.)
  22. the sd(3) driver did not expect overlapped commands,
  23. and crashed.
  24. this has been fixed by making the scsi(2) commands threadsafe,
  25. and making the sd(3) driver more robust.