Changeset f004b2b8 in rtems


Ignore:
Timestamp:
Oct 2, 2018, 8:22:15 AM (14 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e069f7fe
Parents:
e50e3f70
Message:

Use rtems_task_exit()

Update #3530.
Update #3533.

Files:
23 edited

Legend:

Unmodified
Added
Removed
  • bsps/powerpc/mpc55xxevb/net/smsc9218i.c

    re50e3f70 rf004b2b8  
    15011501
    15021502  /* Terminate self */
    1503   (void) rtems_task_delete(RTEMS_SELF);
     1503  rtems_task_exit();
    15041504}
    15051505
  • bsps/powerpc/mvme5500/net/if_100MHz/GT64260eth.c

    re50e3f70 rf004b2b8  
    15701570   * hold a newly created TID
    15711571   */
    1572   rtems_task_delete(RTEMS_SELF);
    1573 }
    1574 
     1572  rtems_task_exit();
     1573}
     1574
  • bsps/powerpc/mvme5500/net/if_1GHz/if_wm.c

    re50e3f70 rf004b2b8  
    16951695   * hold a newly created TID
    16961696   */
    1697   rtems_task_delete(RTEMS_SELF);
     1697  rtems_task_exit();
    16981698}
    16991699
  • bsps/powerpc/shared/net/tsec.c

    re50e3f70 rf004b2b8  
    777777   */
    778778  sc->rxDaemonTid = 0;
    779   rtems_task_delete(RTEMS_SELF);
     779  rtems_task_exit();
    780780}
    781781
     
    11271127   */
    11281128  sc->txDaemonTid = 0;
    1129   rtems_task_delete(RTEMS_SELF);
     1129  rtems_task_exit();
    11301130}
    11311131
  • bsps/shared/dev/ide/ata.c

    re50e3f70 rf004b2b8  
    909909#if ATA_DEBUG
    910910                ata_printf("ata_queue_task: internal error\n");
    911                 rtems_task_delete (RTEMS_SELF);
     911                rtems_task_exit();
    912912#endif
    913913                rtems_fatal_error_occurred(RTEMS_INTERNAL_ERROR);
  • bsps/sparc/shared/spw/grspw_pkt.c

    re50e3f70 rf004b2b8  
    27462746
    27472747        grspw_work_event(WORKTASK_EV_QUIT, message);
    2748         rtems_task_delete(RTEMS_SELF);
     2748        rtems_task_exit();
    27492749}
    27502750
  • cpukit/ftpd/ftpd.c

    re50e3f70 rf004b2b8  
    20572057    }
    20582058  }
    2059   rtems_task_delete(RTEMS_SELF);
     2059  rtems_task_exit();
    20602060}
    20612061
  • cpukit/include/rtems/rtems/event.h

    re50e3f70 rf004b2b8  
    429429 *   assert(sc == RTEMS_SUCCESSFUL);
    430430 *
    431  *   sc = rtems_task_delete(RTEMS_SELF);
    432  *   assert(sc == RTEMS_SUCCESSFUL);
     431 *   rtems_task_exit();
    433432 * }
    434433 *
  • cpukit/include/rtems/status-checks.h

    re50e3f70 rf004b2b8  
    189189  if ((rtems_status_code) (sc) != RTEMS_SUCCESSFUL) { \
    190190    RTEMS_SYSLOG_ERROR_WITH_SC( sc, msg); \
    191     (void) rtems_task_delete( RTEMS_SELF); \
     191    rtems_task_exit(); \
    192192    return; \
    193193  } else { \
     
    238238  if ((int) (rv) < 0) { \
    239239    RTEMS_SYSLOG_ERROR_WITH_RV( rv, msg); \
    240     (void) rtems_task_delete( RTEMS_SELF); \
     240    rtems_task_exit(); \
    241241    return; \
    242242  } else { \
  • cpukit/libblock/src/bdbuf.c

    re50e3f70 rf004b2b8  
    26442644  free (worker);
    26452645
    2646   rtems_task_delete (RTEMS_SELF);
     2646  rtems_task_exit();
    26472647}
    26482648
     
    27472747  free (transfer);
    27482748
    2749   rtems_task_delete (RTEMS_SELF);
     2749  rtems_task_exit();
    27502750}
    27512751
     
    29802980  }
    29812981
    2982   rtems_task_delete (RTEMS_SELF);
     2982  rtems_task_exit();
    29832983}
    29842984
  • cpukit/libcsupport/src/termios.c

    re50e3f70 rf004b2b8  
    19271927    if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) {
    19281928      tty->txTaskId = 0;
    1929       rtems_task_delete(RTEMS_SELF);
     1929      rtems_task_exit();
    19301930    }
    19311931
     
    19751975    if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) {
    19761976      tty->rxTaskId = 0;
    1977       rtems_task_delete(RTEMS_SELF);
     1977      rtems_task_exit();
    19781978    }
    19791979
  • cpukit/libdebugger/rtems-debugger-server.c

    re50e3f70 rf004b2b8  
    16921692    rtems_debugger_printf("rtems-db: events finishing\n");
    16931693
    1694   rtems_task_delete(RTEMS_SELF);
     1694  rtems_task_exit();
    16951695}
    16961696
     
    19141914  rtems_debugger_unlock();
    19151915
    1916   rtems_task_delete(RTEMS_SELF);
     1916  rtems_task_exit();
    19171917}
    19181918
  • cpukit/libfs/src/nfsclient/src/nfs.c

    re50e3f70 rf004b2b8  
    31063106        }
    31073107        rtems_binary_semaphore_post(&rpa->sync);
    3108         rtems_task_delete(RTEMS_SELF);
     3108        rtems_task_exit();
    31093109}
    31103110
  • cpukit/libmisc/cpuuse/cpuusagetop.c

    re50e3f70 rf004b2b8  
    496496  data->thread_active = false;
    497497
    498   rtems_task_delete (RTEMS_SELF);
     498  rtems_task_exit();
    499499}
    500500
  • cpukit/libmisc/monitor/mon-server.c

    re50e3f70 rf004b2b8  
    183183
    184184failed:
    185     rtems_task_delete(RTEMS_SELF);
     185    rtems_task_exit();
    186186}
    187187
  • cpukit/libmisc/redirector/stdio-redirect.c

    re50e3f70 rf004b2b8  
    9898  sr->state |= RTEMS_STDIO_REDIRECT_FINISHED;
    9999
    100   rtems_task_delete(RTEMS_SELF);
     100  rtems_task_exit();
    101101}
    102102
  • cpukit/libmisc/shell/shell.c

    re50e3f70 rf004b2b8  
    681681  if (wake_on_end != RTEMS_INVALID_ID)
    682682    rtems_event_send (wake_on_end, RTEMS_EVENT_1);
    683   rtems_task_delete( RTEMS_SELF );
     683  rtems_task_exit();
    684684}
    685685
  • cpukit/libnetworking/rtems/rtems_dhcp.c

    re50e3f70 rf004b2b8  
    797797  dhcp_task_id = 0;
    798798  printf ("dhcpc: exiting lease renewal task.\n");
    799   rtems_task_delete( RTEMS_SELF);
     799  rtems_task_exit();
    800800
    801801}
  • cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c

    re50e3f70 rf004b2b8  
    327327error_out:
    328328  printf("Stopping dhcp monitoring application.\n");
    329   rtems_task_delete(RTEMS_SELF);
     329  rtems_task_exit();
    330330}
    331331
  • cpukit/librpc/src/rpc/rtems_portmapper.c

    re50e3f70 rf004b2b8  
    6464        if ((sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
    6565                perror("portmap cannot create socket");
    66                 rtems_task_delete (RTEMS_SELF);
     66                rtems_task_exit();
    6767        }
    6868
     
    7373                perror("portmap cannot bind");
    7474                close (sock);
    75                 rtems_task_delete (RTEMS_SELF);
     75                rtems_task_exit();
    7676        }
    7777
     
    7979                fprintf(stderr, "couldn't do udp_create\n");
    8080                close (sock);
    81                 rtems_task_delete (RTEMS_SELF);
     81                rtems_task_exit();
    8282        }
    8383        /* make an entry for ourself */
     
    9393                perror("portmap cannot create socket");
    9494                close (sock);
    95                 rtems_task_delete (RTEMS_SELF);
     95                rtems_task_exit();
    9696        }
    9797        if (bind(sock, (struct sockaddr *)&addr, len) != 0) {
    9898                perror("portmap cannot bind");
    9999                close (sock);
    100                 rtems_task_delete (RTEMS_SELF);
     100                rtems_task_exit();
    101101        }
    102102        if ((xprt = svctcp_create(sock, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE))
     
    104104                fprintf(stderr, "couldn't do tcp_create\n");
    105105                close (sock);
    106                 rtems_task_delete (RTEMS_SELF);
     106                rtems_task_exit();
    107107        }
    108108        /* make an entry for ourself */
     
    120120        fprintf(stderr, "run_svc returned unexpectedly\n");
    121121        close (sock);
    122         rtems_task_delete (RTEMS_SELF);
     122        rtems_task_exit();
    123123}
    124124
  • cpukit/pppd/rtemspppd.c

    re50e3f70 rf004b2b8  
    7373  /* terminate myself */
    7474  rtems_pppd_taskid = 0;
    75   rtems_task_delete(RTEMS_SELF);
     75  rtems_task_exit();
    7676}
    7777
  • cpukit/score/cpu/i386/sse_test.c

    re50e3f70 rf004b2b8  
    767767
    768768        if ( ! (flags & SSE_TEST_NO_DEL) )
    769                 rtems_task_delete( RTEMS_SELF );
     769                rtems_task_exit();
    770770}
    771771
  • cpukit/telnetd/telnetd.c

    re50e3f70 rf004b2b8  
    212212  if ((des_socket=socket(PF_INET,SOCK_STREAM,0))<0) {
    213213    perror("telnetd:socket");
    214     rtems_task_delete(RTEMS_SELF);
     214    rtems_task_exit();
    215215  };
    216216  setsockopt(des_socket,SOL_SOCKET,SO_KEEPALIVE,&i,sizeof(i));
     
    223223    perror("telnetd:bind");
    224224    close(des_socket);
    225     rtems_task_delete(RTEMS_SELF);
     225    rtems_task_exit();
    226226  };
    227227  if ((listen(des_socket,5))<0) {
    228228    perror("telnetd:listen");
    229229          close(des_socket);
    230     rtems_task_delete(RTEMS_SELF);
     230    rtems_task_exit();
    231231  };
    232232
     
    458458  free(pwa);
    459459  t(a);
    460   rtems_task_delete(RTEMS_SELF);
     460  rtems_task_exit();
    461461}
    462462
Note: See TracChangeset for help on using the changeset viewer.