Global variables are overwritten... let's fix that
This commit is contained in:
parent
2de7e537ea
commit
d483d8f39e
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user