Ignore:
Timestamp:
Oct 24, 2017, 5:46:09 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
034165a, 15e4e22
Parents:
af98d27
Message:

Fixed errors and warnings in CtxSwitch benchmarks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/PthrdCtxSwitch.c

    raf98d27 rf1dd17a  
    11#include <stdio.h>
    22#include <stdlib.h>
    3 #define _GNU_SOURCE
    4 #include <pthread.h>
     3
     4#include <sched.h>
    55
    66#include "bench.h"
     
    1212        StartTime = Time();
    1313        for ( volatile unsigned int i = 0; i < NoOfTimes; i += 1 ) {
    14                 pthread_yield();
     14                sched_yield();
    1515        }
    1616        EndTime = Time();
Note: See TracChangeset for help on using the changeset viewer.