Global variables are overwritten... let's fix that
This commit is contained in:
1 parent
2de7e537ea
commit
d483d8f39e
1 file changed
+2
-1
@@ -8,9 +8,10 @@
|
|||||||
#include <thread.h>
|
#include <thread.h>
|
||||||
#include <scheduler.h>
|
#include <scheduler.h>
|
||||||
|
|
||||||
|
int thread_id;
|
||||||
void thread_function()
|
void thread_function()
|
||||||
{
|
{
|
||||||
int thread_id = thread()->tid;
|
thread_id = thread()->tid;
|
||||||
|
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user