Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mkcl
mkcl
Commits
6fe717cd
Commit
6fe717cd
authored
May 15, 2020
by
Jean-Claude Beaudoin
Browse files
Patch previous commit.
parent
81d29de1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/c/alloc_2.d
View file @
6fe717cd
...
...
@@ -997,7 +997,8 @@ static void * customize_GC(void * client_data)
static
int
alloc_initialized
=
FALSE
;
#
if
__ANDROID__
&&
__LP32__
/* Signal mask support for realtime signals is broken in Android 32bits. */
#
if
__ANDROID__
&&
(
__arm__
||
__i386__
)
/* Signal mask support for realtime signals is broken in Android 32bits. */
#
define
DEFAULT_GC_THREAD_SUSPEND_SIGNAL
SIGPWR
#
define
DEFAULT_GC_THREAD_RESTART_SIGNAL
SIGXCPU
#
elif
MKCL_PTHREADS
...
...
src/c/unixint.d
View file @
6fe717cd
...
...
@@ -2023,7 +2023,8 @@ void mkcl_init_early_unixint(MKCL)
if
(
pthread_create
(&
default_signal_servicing_thread
,
NULL
,
signal_servicing_loop
,
NULL
))
mkcl_lose
(
env
,
"mkcl_init_unixint failed on pthread_create."
);
#
if
__ANDROID__
&&
__LP32__
/* Signal mask support for realtime signals is broken in Android 32bits. */
#
if
__ANDROID__
&&
(
__arm__
||
__i386__
)
/* Signal mask support for realtime signals is broken in Android 32bits. */
#
define
DEFAULT_THREAD_RESUME_SIGNAL
SIGWINCH
#
define
DEFAULT_THREAD_INTERRUPT_SIGNAL
SIGSTKFLT
#
define
DEFAULT_THREAD_WAKE_UP_SIGNAL
SIGXFSZ
...
...
@@ -2169,7 +2170,7 @@ static void terminate_default_signal_servicing_thread(void)
new_wake_up_sigaction
.
sa_flags
=
SA_SIGINFO
;
sigaction
(
wake_up_sig
,
&
new_wake_up_sigaction
,
NULL
);
pthread_kill
(
default_signal_servicing_thread
,
WAKE_UP
);
pthread_kill
(
default_signal_servicing_thread
,
wake_up_sig
);
}
#
else
/* __ANDROID__ */
/* Android refused to implement pthread_cancel() et al. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment