Add a TODO.

This commit is contained in:
dcp1990 2005-06-13 01:29:57 +00:00
parent 911429455c
commit a1366f2b16

View File

@ -170,6 +170,14 @@ void modem_hread(char* cbuf)
}
pthread_mutex_unlock(&buffermx);
}
/*
* XXX: this is inefficient
* TODO: move this so we have a global pipe that is select()ed.
* Threads lock its mutex, write ONE BYTE to it, and the select() receives it. The calling thread unlocks the pipe mux.
* This unlocks the modem mutex, waits, and tries to keep locking (maybe using a conditional)
* until it gets it and reselects. DO IT. (thanks jilles)
* Do all this after a trylock().
*/
void *modem_io(k)
void* k;
{