Ignore:
Timestamp:
Feb 13, 2013, 8:46:25 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Parents:
af30847
Message:

Avoid rtems_bsdnet_event_receive()

RTEMS 4.11 will use system events inside the network stack. Use normal
events for CALLOUT(9) and TASKQUEUE(9) implementations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsd_eth_drivers/libbsdport/rtems_taskqueue.c

    raf30847 r28a6f92  
    224224rtems_status_code sc;
    225225        while ( 1 ) {
    226                 sc = rtems_bsdnet_event_receive(TQ_WAKE_EVENT, RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &evs);
     226                rtems_bsdnet_semaphore_release();
     227                sc = rtems_event_receive(TQ_WAKE_EVENT, RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &evs);
     228                rtems_bsdnet_semaphore_obtain();
    227229                if ( RTEMS_SUCCESSFUL != sc ) {
    228230                        rtems_error(sc,"rtems_taskqueue: taskqueueDoWork() unable to receive wakup event\n");
Note: See TracChangeset for help on using the changeset viewer.