Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 25 of 422

Thread: Teensy 3.x multithreading library first release

Threaded View

  1. #11
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    4,213
    @tni

    Made the changes to threads.cpp and the sketch but now getting the following errors. Did you make any changes to threads.h? I did add void ctx_switch_timer_isr(void); to threads.h since you renamed the function. (just for ref I downloaded the intervalTimer lib from https://github.com/loglow/IntervalTimer.git)

    Code:
    C:\Users\CyberPalin\Documents\Arduino\libraries\TeensyThreads-master\Threads.h:190:7: error: 'int Threads::thread_active' is protected
    
       int thread_active;
    
           ^
    
    C:\Users\CyberPalin\Documents\Arduino\libraries\TeensyThreads-master\Threads.cpp:102:15: error: within this context
    
       if (threads.thread_active == Threads::STARTED) { // switch only if active
    
                   ^
    Last edited by mjs513; 03-18-2017 at 08:06 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •