Changeset d5a9c80 in rtems


Ignore:
Timestamp:
May 4, 2015, 6:56:14 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
5f7f469
Parents:
a382010c
git-author:
Sebastian Huber <sebastian.huber@…> (05/04/15 06:56:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/19/15 10:00:43)
Message:

rtems: Use once mutex for timer server init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/timerserver.c

    ra382010c rd5a9c80  
    3030#include <rtems/rtems/timerimpl.h>
    3131#include <rtems/rtems/tasksimpl.h>
     32#include <rtems/score/apimutex.h>
    3233#include <rtems/score/todimpl.h>
    3334
     
    347348   *  Just to make sure this is only called once.
    348349   */
    349   _Thread_Disable_dispatch();
     350  _Once_Lock();
    350351    tmpInitialized  = initialized;
    351352    initialized = true;
    352   _Thread_Enable_dispatch();
     353  _Once_Unlock();
    353354
    354355  if ( tmpInitialized )
Note: See TracChangeset for help on using the changeset viewer.