mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH 0/9]  C thread patch series, v. 8.6 and 9.7
@ 2014-08-31 22:45 Jens Gustedt
  2014-08-31 22:45 ` [PATCH 1/9] interface additions for the C thread implementation Jens Gustedt
                   ` (8 more replies)
  0 siblings, 9 replies; 28+ messages in thread
From: Jens Gustedt @ 2014-08-31 22:45 UTC (permalink / raw)
  To: musl

This time this comes in a series of 7+2 patches, that each groups some
features together as you may see in the summary below.

The first 7 patches together implement a version of C threads (my v. 8.6) as they
are described in C11 section 7.26. It is entirely based on musl's
pthread implementation, and since C11 leaves a lot of leeway for
interpretation, it follows POSIX semantics wherever this is possible.

The 8th and 9th patch are optional, and implements a stricter separation
between pthread_create and thrd_create, my version 9.7.

Jens Gustedt (9):
  interface additions for the C thread implementation
  additions to src/time and some implied minor changes here and there
  use weak symbols for the POSIX functions that will be used by C
    threads
  add the functions for tss_t and once_flag
  add the functions for mtx_t
  add the functions for cnd_t
  add the thrd_xxxxxx functions
  separate pthread_create and pthread_exit in two different TU
  Separate pthread_create and thrd_create

 arch/arm/bits/alltypes.h.in                    |   10 +-
 arch/i386/bits/alltypes.h.in                   |   10 +-
 arch/microblaze/bits/alltypes.h.in             |   10 +-
 arch/mips/bits/alltypes.h.in                   |   10 +-
 arch/or1k/bits/alltypes.h.in                   |   10 +-
 arch/powerpc/bits/alltypes.h.in                |   10 +-
 arch/sh/bits/alltypes.h.in                     |   10 +-
 arch/x32/bits/alltypes.h.in                    |   10 +-
 arch/x86_64/bits/alltypes.h.in                 |   10 +-
 include/alltypes.h.in                          |   10 ++
 include/threads.h                              |  110 ++++++++++++++++++
 include/time.h                                 |   11 ++
 src/aio/aio_suspend.c                          |    4 +-
 src/internal/pthread_impl.h                    |    2 +
 src/mman/mprotect.c                            |    4 +-
 src/network/res_mkquery.c                      |    4 +-
 src/network/res_msend.c                        |    4 +-
 src/sched/thrd_yield.c                         |    7 ++
 src/thread/__timedwait.c                       |    9 +-
 src/thread/call_once.c                         |    7 ++
 src/thread/cnd_broadcast.c                     |   10 ++
 src/thread/cnd_destroy.c                       |    5 +
 src/thread/cnd_init.c                          |    7 ++
 src/thread/cnd_signal.c                        |   10 ++
 src/thread/cnd_timedwait.c                     |   14 +++
 src/thread/cnd_wait.c                          |   10 ++
 src/thread/mtx_destroy.c                       |    5 +
 src/thread/mtx_init.c                          |   10 ++
 src/thread/mtx_lock.c                          |   13 +++
 src/thread/mtx_timedlock.c                     |   18 +++
 src/thread/mtx_trylock.c                       |   21 ++++
 src/thread/mtx_unlock.c                        |    9 ++
 src/thread/pthread_cond_timedwait.c            |   12 +-
 src/thread/pthread_create.c                    |  148 ++++--------------------
 src/thread/pthread_detach.c                    |    2 +-
 src/thread/pthread_exit.c                      |  130 +++++++++++++++++++++
 src/thread/pthread_getspecific.c               |    5 +-
 src/thread/pthread_join.c                      |    4 +-
 src/thread/pthread_key_create.c                |    7 +-
 src/thread/pthread_mutex_lock.c                |    8 +-
 src/thread/pthread_mutex_timedlock.c           |    4 +-
 src/thread/pthread_mutex_trylock.c             |    4 +-
 src/thread/pthread_mutex_unlock.c              |    4 +-
 src/thread/pthread_once.c                      |    4 +-
 src/thread/pthread_setcancelstate.c            |    4 +-
 src/thread/pthread_testcancel.c                |    4 +-
 src/thread/thrd_create.c                       |   93 +++++++++++++++
 src/thread/thrd_current.c                      |   11 ++
 src/thread/{pthread_detach.c => thrd_detach.c} |    5 +-
 src/thread/thrd_equal.c                        |    6 +
 src/thread/thrd_exit.c                         |   10 ++
 src/thread/thrd_join.c                         |   22 ++++
 src/thread/tss_create.c                        |   11 ++
 src/thread/tss_delete.c                        |    7 ++
 src/thread/tss_set.c                           |   13 +++
 src/time/__clock_gettime.c                     |   44 +++++++
 src/time/clock_gettime.c                       |   41 ++-----
 src/time/ftime.c                               |    4 +-
 src/time/gettimeofday.c                        |    4 +-
 src/time/thrd_sleep.c                          |   26 +++++
 src/time/timespec_get.c                        |   12 ++
 61 files changed, 845 insertions(+), 198 deletions(-)
 create mode 100644 include/threads.h
 create mode 100644 src/sched/thrd_yield.c
 create mode 100644 src/thread/call_once.c
 create mode 100644 src/thread/cnd_broadcast.c
 create mode 100644 src/thread/cnd_destroy.c
 create mode 100644 src/thread/cnd_init.c
 create mode 100644 src/thread/cnd_signal.c
 create mode 100644 src/thread/cnd_timedwait.c
 create mode 100644 src/thread/cnd_wait.c
 create mode 100644 src/thread/mtx_destroy.c
 create mode 100644 src/thread/mtx_init.c
 create mode 100644 src/thread/mtx_lock.c
 create mode 100644 src/thread/mtx_timedlock.c
 create mode 100644 src/thread/mtx_trylock.c
 create mode 100644 src/thread/mtx_unlock.c
 create mode 100644 src/thread/pthread_exit.c
 create mode 100644 src/thread/thrd_create.c
 create mode 100644 src/thread/thrd_current.c
 copy src/thread/{pthread_detach.c => thrd_detach.c} (69%)
 create mode 100644 src/thread/thrd_equal.c
 create mode 100644 src/thread/thrd_exit.c
 create mode 100644 src/thread/thrd_join.c
 create mode 100644 src/thread/tss_create.c
 create mode 100644 src/thread/tss_delete.c
 create mode 100644 src/thread/tss_set.c
 create mode 100644 src/time/__clock_gettime.c
 create mode 100644 src/time/thrd_sleep.c
 create mode 100644 src/time/timespec_get.c

-- 
1.7.10.4



^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2014-09-07 16:55 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-31 22:45 [PATCH 0/9] C thread patch series, v. 8.6 and 9.7 Jens Gustedt
2014-08-31 22:45 ` [PATCH 1/9] interface additions for the C thread implementation Jens Gustedt
2014-09-07  0:21   ` Rich Felker
2014-09-07  9:13     ` Jens Gustedt
2014-09-07 10:05       ` Alexander Monakov
2014-09-07 11:16         ` Jens Gustedt
2014-09-07 11:31           ` Alexander Monakov
2014-09-07 11:32           ` Rich Felker
2014-09-07 14:45             ` Jens Gustedt
2014-09-07 15:16               ` Rich Felker
2014-09-07 16:51                 ` Jens Gustedt
2014-09-07 16:55                   ` Rich Felker
2014-09-07  1:19   ` Rich Felker
2014-08-31 22:46 ` [PATCH 2/9] additions to src/time and some implied minor changes here and there Jens Gustedt
2014-09-06 17:44   ` Rich Felker
2014-08-31 22:46 ` [PATCH 3/9] use weak symbols for the POSIX functions that will be used by C threads Jens Gustedt
2014-09-06 18:52   ` Rich Felker
2014-08-31 22:46 ` [PATCH 4/9] add the functions for tss_t and once_flag Jens Gustedt
2014-08-31 22:46 ` [PATCH 5/9] add the functions for mtx_t Jens Gustedt
2014-09-07  1:51   ` Rich Felker
2014-09-07  1:54   ` Rich Felker
2014-08-31 22:47 ` [PATCH 6/9] add the functions for cnd_t Jens Gustedt
2014-08-31 22:47 ` [PATCH 7/9] add the thrd_xxxxxx functions Jens Gustedt
2014-09-07 14:24   ` Rich Felker
2014-09-07 14:52     ` Jens Gustedt
2014-09-07 15:17       ` Rich Felker
2014-08-31 22:47 ` [PATCH 8/9] separate pthread_create and pthread_exit in two different TU Jens Gustedt
2014-08-31 22:48 ` [PATCH 9/9] Separate pthread_create and thrd_create Jens Gustedt

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).