Doubt

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Doubt

Post by digo_rp »

Guys, trying to create a gui system, I stop and I´m almost pulling all my heair off my head...

example.

I have to tasks, one is for main gui system, that task is all the time reading for event function like int 0xfe <- that one get event from
operating system.

other task is guiapp1, it is just an application that read event from OS too, that one reads int 0xfe.

but now is the biggest question...

I have an int 0xfe called from gui main system and it waiting for event from OS, then the task is switched to guiapp1, and inside my code from int 0xfe have all vars set and everything is set for that fisrt call from gui main system, if I call it again from guiapp1, should that two tasks make mess at that int 0xfe ?

how can I hold " take care " at this case ? please

ps: I don´t speak much english, I´m so sorry for all mistakes . :-D
dak91
Member
Member
Posts: 43
Joined: Thu Mar 12, 2009 3:27 am
Location: Sardegna (IT)

Re: Doubt

Post by dak91 »

I think you need to implement mutex
Post Reply