Joe Barrett
2005-05-12 00:41:00 UTC
In my message queue struct, as I had in my semaphore struct, I have:
struct Thread_Queue foo;
I had one of these for project 3, to keep track of what threads could
access the semaphore, and now I've got one for sending and one for
receiving (so I can handle one or the other blocking, etc.). However,
I'm getting an error when attempting to compile:
In file included from ../include/geekos/kthread.h:15,
from ../src/geekos/syscall.c:13:
../include/geekos/message.h:40: error: field `sending' has incomplete type
../include/geekos/message.h:41: error: field `receiving' has incomplete type
gmake: *** [geekos/syscall.o] Error 1
I made sure to include kthread.h and list.h, and yet the error
continues. The code is - as best I can tell - identical to the
semaphores project, but I can't make it stop erroring.
Thanks,
Joe
struct Thread_Queue foo;
I had one of these for project 3, to keep track of what threads could
access the semaphore, and now I've got one for sending and one for
receiving (so I can handle one or the other blocking, etc.). However,
I'm getting an error when attempting to compile:
In file included from ../include/geekos/kthread.h:15,
from ../src/geekos/syscall.c:13:
../include/geekos/message.h:40: error: field `sending' has incomplete type
../include/geekos/message.h:41: error: field `receiving' has incomplete type
gmake: *** [geekos/syscall.o] Error 1
I made sure to include kthread.h and list.h, and yet the error
continues. The code is - as best I can tell - identical to the
semaphores project, but I can't make it stop erroring.
Thanks,
Joe