Changeset c0e674a in mainline for console/console.c


Ignore:
Timestamp:
2006-05-31T16:15:44Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5052046
Parents:
b27a97bb
Message:

Fix incorrect timeout handling in async framework.
Start tweak the tetris code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • console/console.c

    rb27a97bb rc0e674a  
    3939#include <async.h>
    4040
     41static void sysput(char c)
     42{
     43        __SYSCALL3(SYS_IO, 1, &c, 1);
     44
     45}
    4146//#define CONSOLE_COUNT VFB_CONNECTIONS
    4247#define CONSOLE_COUNT 6
     
    157162                case CONSOLE_GETCHAR:
    158163                        /* FIXME: Only temporary solution until request storage will be created  */
    159                        
    160164                        while (!keybuffer_pop(&(connections[active_client].keybuffer), (char *)&arg1)) {
    161165                                /* FIXME: buffer empty -> store request */
    162                                 usleep(10000);
     166                                async_usleep(100000);
    163167                        };
    164168                       
Note: See TracChangeset for help on using the changeset viewer.