forked from OSchip/llvm-project
19 lines
476 B
C
19 lines
476 B
C
//===-- a.c -----------------------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include <unistd.h>
|
|
|
|
__thread int var_shared = 33;
|
|
|
|
void shared_check()
|
|
{
|
|
var_shared *= 2;
|
|
usleep(1); // shared thread breakpoint
|
|
}
|