Skip to content
Snippets Groups Projects
Commit 4dedf583 authored by a2-stratford's avatar a2-stratford
Browse files

Merge branch 'josh/fix-small-bug-in-exit-code' into 'master'

Fixed a small issue with thread_exit_code()

See merge request !1
parents 44283316 d29b876b
No related branches found
No related tags found
1 merge request!1Fixed a small issue with thread_exit_code()
...@@ -258,7 +258,7 @@ thread_name (void) ...@@ -258,7 +258,7 @@ thread_name (void)
} }
/* Returns the exit code of the running thread. */ /* Returns the exit code of the running thread. */
const int * int
thread_exit_code (void) thread_exit_code (void)
{ {
return thread_current()->exit_code; return thread_current()->exit_code;
......
...@@ -123,7 +123,7 @@ void thread_unblock (struct thread *); ...@@ -123,7 +123,7 @@ void thread_unblock (struct thread *);
struct thread *thread_current (void); struct thread *thread_current (void);
tid_t thread_tid (void); tid_t thread_tid (void);
const char *thread_name (void); const char *thread_name (void);
const int *thread_exit_code (void); int thread_exit_code (void);
void thread_exit (void) NO_RETURN; void thread_exit (void) NO_RETURN;
void thread_yield (void); void thread_yield (void);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment