]> xenbits.xensource.com Git - unikraft/libs/ruby.git/commit
core: Add thread related definitions
authorCostin Lupu <costin.lupu@cs.pub.ro>
Sat, 7 Dec 2019 08:29:37 +0000 (10:29 +0200)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Thu, 12 Dec 2019 16:26:12 +0000 (18:26 +0200)
commit13dd9dcae1ab61af852be546768220870418b849
treefb8f883690ea0394eced8576f18d2d9d70985f78
parentea3bc8e3202ce6d156ebd425feb31a8961b229e3
core: Add thread related definitions

With pthread-embedded library, special care has to be taken when dealing with
conversions from `pthread_t` to scalar values. Therefore we have to define our
own conversion functions.

We also copy `ruby_fill_thread_id_string()` function from origin to glue in
order to avoid patching the origin code. The function is copied here because of
a bug in the Ruby implementation, which only defines it if THREAD_DEBUG is
enabled. When this bug is fixed in Ruby, this is no long necessary.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Stefan Teodorescu <stefanl.teodorescu@gmail.com>
Makefile.uk
include/ruby/config.h
thread.c [new file with mode: 0644]