Changeset 5762


Ignore:
Timestamp:
Dec 8, 2017, 6:39:24 AM (18 months ago)
Author:
cameron
Message:

Use portable sched_yield rather than pthread_yield

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep_engine.cpp

    r5761 r5762  
    4040#include <llvm/Support/CommandLine.h>
    4141#include <llvm/Support/Debug.h>
     42#include <sched.h>
    4243
    4344using namespace parabix;
     
    465466            mCacheMutex.unlock();
    466467        }
    467         pthread_yield();
     468        sched_yield();
    468469    }
    469470
Note: See TracChangeset for help on using the changeset viewer.