mavishak / cnss-embedded

1 stars 0 forks source link

event queue questions regarding implementation #2

Open mavishak opened 3 years ago

mavishak commented 3 years ago

IMPORTANT NOTES AND QUESTIONS: This code (event_queue.c/h) has not been tested.

  1. When the queue is full how will the event stay reserved? should we keep trying to enter it until it succeeds?
  2. Will it be better to check if the queue is full outside of the function in order to save time and memory?
  3. When queue. access == STOP should we check it in the add_event function or out of it?
  4. What happens if the handler has an argument? When could that happen?
  5. What is the best way to test and debug this event_queue?
  6. Check if the header file contains everything it needs...
  7. Generally speaking what is the project's structure in terms of files (events, handlers, etc.)?
  8. How to DEBUG correctly???
  9. When dealing with global variables How to lock them in case of interrupt preemption? Answer: We will not allow preemption