Changeset 8228548 in rtems


Ignore:
Timestamp:
Feb 19, 2016, 10:00:48 PM (3 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
04da96c7
Parents:
6efa349
git-author:
Joel Sherrill <joel@…> (02/19/16 22:00:48)
git-committer:
Joel Sherrill <joel@…> (04/14/16 21:28:10)
Message:

Add pthread_getconcurrency() and pthread_setconcurrency()

This is the very simple implementation specified by the Open Group
for implementations with 1:1 kernel thread to user thread mappings.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_getconcurrency.html

updates #2680.

Files:
7 added
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/Makefile.am

    r6efa349 r8228548  
    127127    src/pthreadgetattrnp.c \
    128128    src/pthreadattrgetguardsize.c src/pthread.c \
     129    src/pthreadconcurrency.c \
    129130    src/pthreadcreate.c src/pthreaddetach.c src/pthreadequal.c \
    130131    src/pthreadexit.c src/pthreadgetcpuclockid.c \
  • testsuites/psxtests/Makefile.am

    r6efa349 r8228548  
    88    psxalarm01 psxautoinit01 psxautoinit02 psxbarrier01 \
    99    psxcancel psxcancel01 psxclassic01 psxcleanup psxcleanup01 \
    10     psxcond01 psxconfig01 psxenosys \
     10    psxconcurrency01 psxcond01 psxconfig01 psxenosys \
    1111    psxitimer psxmsgq01 psxmsgq02 psxmsgq03 psxmsgq04 \
    1212    psxmutexattr01 psxobj01 psxrwlock01 psxsem01 psxsignal01 psxsignal02 \
  • testsuites/psxtests/configure.ac

    r6efa349 r8228548  
    144144psxclock/Makefile
    145145psxclock01/Makefile
     146psxconcurrency01/Makefile
    146147psxcond01/Makefile
    147148psxconfig01/Makefile
  • testsuites/psxtests/psxhdrs/Makefile.am

    r6efa349 r8228548  
    3939lib_a_SOURCES += pthread/pthread_equal.c
    4040lib_a_SOURCES += pthread/pthread_exit.c
     41lib_a_SOURCES += pthread/pthread_getconcurrency.c
    4142lib_a_SOURCES += pthread/pthread_getcpuclockid.c
    4243lib_a_SOURCES += pthread/pthread_getschedparam.c
     
    6566lib_a_SOURCES += pthread/pthread_setcancelstate.c
    6667lib_a_SOURCES += pthread/pthread_setcanceltype.c
     68lib_a_SOURCES += pthread/pthread_setconcurrency.c
    6769lib_a_SOURCES += pthread/pthread_setschedparam.c
    6870lib_a_SOURCES += pthread/pthread_setspecific.c
Note: See TracChangeset for help on using the changeset viewer.