Changeset 47b1e31 in rtems for cpukit/posix


Ignore:
Timestamp:
Sep 19, 2017, 12:10:33 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
c090db7
Parents:
e46a075
git-author:
Sebastian Huber <sebastian.huber@…> (09/19/17 12:10:33)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/05/17 12:29:01)
Message:

posix: Optimize pthread_once_t

Reduce size of pthread_once_t and make it zero-initialized.

Update #3142.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/pthreadonce.c

    re46a075 r47b1e31  
    3434    return EINVAL;
    3535
    36   if ( once_control->is_initialized != 1 )
    37     return EINVAL;
    38 
    39   return _Once( &once_control->init_executed, init_routine );
     36  return _Once( &once_control->_flags, init_routine );
    4037}
Note: See TracChangeset for help on using the changeset viewer.