Skip to content
Snippets Groups Projects
  1. Oct 22, 2016
  2. Oct 21, 2016
  3. Oct 20, 2016
  4. Oct 19, 2016
    • Alex March's avatar
    • Damien George's avatar
      cc3200: Fix thread mutex's so threading works with interrupts. · 17ba6ef5
      Damien George authored
      Running Python code on a hard interrupt is incompatible with having a GIL,
      because most of the time the GIL will be held by the user thread when the
      interrupt arrives.  Hard interrupts mean that we should process them right
      away and hence can't wait until the GIL is released.
      
      The problem with the current code is that a hard interrupt will try to
      exit/enter the GIL while it is still held by the user thread, hence leading
      to a deadlock.
      
      This patch works around such a problem by just making GIL exit/enter a
      no-op when in an interrupt context, or when interrupts are disabled.
      
      See issue #2406.
      17ba6ef5
  5. Oct 18, 2016
  6. Oct 17, 2016
  7. Oct 16, 2016
  8. Oct 15, 2016
Loading