Changeset 00b13408 in mainline for uspace/drv/usbhid/kbdrepeat.c


Ignore:
Timestamp:
2011-03-18T17:17:04Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
18b3cfd, 3746bfe
Parents:
4fec9ee
Message:

Fixed destroying of KBD structure when polling ended.

The structure must be destroyed in the autorepeat fibril, as there is
no nice way to stop the fibril on demand.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbdrepeat.c

    r4fec9ee r00b13408  
    7777
    7878        while (true) {
     79                // check if the kbd structure is usable
     80                if (!usbhid_kbd_is_usable(kbd)) {
     81                        usbhid_kbd_free(&kbd);
     82                        assert(kbd == NULL);
     83                        return;
     84                }
     85               
    7986                fibril_mutex_lock(kbd->repeat_mtx);
    8087
Note: See TracChangeset for help on using the changeset viewer.