Subversion Repositories HelenOS-historic

Rev

Rev 1653 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1653 Rev 1721
Line 106... Line 106...
106
        (void) gettimeofday(&starttv, NULL);
106
        (void) gettimeofday(&starttv, NULL);
107
        endtv = *tvp;
107
        endtv = *tvp;
108
        s = &endtv;
108
        s = &endtv;
109
    } else
109
    } else
110
        s = NULL;
110
        s = NULL;
111
again:
111
 
112
    if (!lastchar) {
112
    if (!lastchar) {
113
        if (!getchar_inprog)
113
        if (!getchar_inprog)
114
            getchar_inprog = async_send_2(1,CONSOLE_GETCHAR,0,0,&charcall);
114
            getchar_inprog = async_send_2(1,CONSOLE_GETCHAR,0,0,&charcall);
115
        if (!s)
115
        if (!s)
116
            async_wait_for(getchar_inprog, &rc);
116
            async_wait_for(getchar_inprog, &rc);
Line 140... Line 140...
140
 */
140
 */
141
void
141
void
142
tsleep(void)
142
tsleep(void)
143
{
143
{
144
    struct timeval tv;
144
    struct timeval tv;
145
    char c;
-
 
146
 
145
 
147
    tv.tv_sec = 0;
146
    tv.tv_sec = 0;
148
    tv.tv_usec = fallrate;
147
    tv.tv_usec = fallrate;
149
    while (TV_POS(&tv))
148
    while (TV_POS(&tv))
150
        if (rwait(&tv)) {
149
        if (rwait(&tv)) {