Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
pthreads-emb
Commits
4b87ab0d
Verified
Commit
4b87ab0d
authored
Dec 11, 2018
by
Jeremy Soller
Browse files
Add pointers to pthread_init and pthread_terminate
parent
6720dfdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
pthread_init.c
View file @
4b87ab0d
...
...
@@ -46,6 +46,8 @@
#include "pthread.h"
#include "implement.h"
int
(
*
pthread_init_ptr
)(
void
)
__attribute__
((
section
(
".init_array"
)))
=
&
pthread_init
;
int
pthread_init
(
void
)
{
...
...
pthread_terminate.c
View file @
4b87ab0d
...
...
@@ -46,6 +46,7 @@
#include "pthread.h"
#include "implement.h"
void
(
*
pthread_terminate_ptr
)(
void
)
__attribute__
((
section
(
".fini_array"
)))
=
&
pthread_terminate
;
void
pthread_terminate
(
void
)
{
...
...
Write
Preview
Supports
Markdown
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