1 // Copyright 2009 The RE2 Authors. All Rights Reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
8 #include "util/thread.h"
19 void *startThread(void *v
) {
20 Thread
* t
= (Thread
*)v
;
25 void Thread::Start() {
27 pthread_create(&pid_
, 0, startThread
, this);
37 pthread_join(pid_
, &val
);
41 void Thread::SetJoinable(bool j
) {