Welcome, Guest. Please login or register.

Author Topic: Best and fast way to AllocMem within an interrupt :Semaphores ?  (Read 7426 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show all replies
ChaosLord's suggestion does have a point: depending on how exactly mem is allocated/freed, fragmentation might become a problem. If you allocate everything needed in advance, there's nothing to worry about. And you'd produce less overhead (for realtime requirements) - as long as you can live with the memory usage.
Also, I can't really imagine AllocMem() working inside an interrupt...