Fixing whitespace problems
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111765 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e0a1f458e
commit
f11ea14460
test/thread
thread.mutex
thread.lock.algorithm
thread.lock/thread.lock.unique/thread.lock.unique.cons
thread.once/thread.once.callonce
thread.threads/thread.thread.class
thread.thread.assign
thread.thread.constr
thread.thread.destr
@ -501,5 +501,5 @@ int main()
|
|||||||
assert(!l3.locked());
|
assert(!l3.locked());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_HAS_NO_VARIADICS
|
||||||
}
|
}
|
||||||
|
@ -69,8 +69,6 @@ public:
|
|||||||
bool locked() const {return locked_;}
|
bool locked() const {return locked_;}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
@ -512,5 +510,5 @@ int main()
|
|||||||
assert(!l2.locked());
|
assert(!l2.locked());
|
||||||
assert(!l3.locked());
|
assert(!l3.locked());
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_HAS_NO_VARIADICS
|
||||||
}
|
}
|
||||||
|
2
test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/move_assign.pass.cpp
2
test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/move_assign.pass.cpp
@ -29,5 +29,5 @@ int main()
|
|||||||
assert(lk1.owns_lock() == true);
|
assert(lk1.owns_lock() == true);
|
||||||
assert(lk0.mutex() == nullptr);
|
assert(lk0.mutex() == nullptr);
|
||||||
assert(lk0.owns_lock() == false);
|
assert(lk0.owns_lock() == false);
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
2
test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/move_ctor.pass.cpp
2
test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/move_ctor.pass.cpp
@ -27,5 +27,5 @@ int main()
|
|||||||
assert(lk.owns_lock() == true);
|
assert(lk.owns_lock() == true);
|
||||||
assert(lk0.mutex() == nullptr);
|
assert(lk0.mutex() == nullptr);
|
||||||
assert(lk0.owns_lock() == false);
|
assert(lk0.owns_lock() == false);
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
std::mutex m;
|
std::mutex m;
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
std::mutex m;
|
std::mutex m;
|
||||||
|
@ -95,7 +95,7 @@ void f2()
|
|||||||
std::call_once(flg2, init2(), 4, 5);
|
std::call_once(flg2, init2(), 4, 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_HAS_NO_VARIADICS
|
||||||
|
|
||||||
std::once_flag flg41;
|
std::once_flag flg41;
|
||||||
std::once_flag flg42;
|
std::once_flag flg42;
|
||||||
@ -129,7 +129,6 @@ void f42()
|
|||||||
std::call_once(flg41, init41);
|
std::call_once(flg41, init41);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// check basic functionality
|
// check basic functionality
|
||||||
@ -175,5 +174,5 @@ int main()
|
|||||||
t1.join();
|
t1.join();
|
||||||
assert(init2::called == 5);
|
assert(init2::called == 5);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_HAS_NO_VARIADICS
|
||||||
}
|
}
|
||||||
|
@ -78,5 +78,5 @@ int main()
|
|||||||
t0 = std::move(t1);
|
t0 = std::move(t1);
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -126,5 +126,5 @@ int main()
|
|||||||
assert(G::n_alive == 0);
|
assert(G::n_alive == 0);
|
||||||
assert(G::op_run);
|
assert(G::op_run);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_HAS_NO_VARIADICS
|
||||||
}
|
}
|
||||||
|
@ -64,5 +64,5 @@ int main()
|
|||||||
assert(G::n_alive == 0);
|
assert(G::n_alive == 0);
|
||||||
assert(G::op_run);
|
assert(G::op_run);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
class G
|
class G
|
||||||
{
|
{
|
||||||
int alive_;
|
int alive_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user