summaryrefslogtreecommitdiff
path: root/Libraries/LibThread
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibThread')
-rw-r--r--Libraries/LibThread/BackgroundAction.cpp4
-rw-r--r--Libraries/LibThread/BackgroundAction.h4
-rw-r--r--Libraries/LibThread/Thread.cpp4
-rw-r--r--Libraries/LibThread/Thread.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/Libraries/LibThread/BackgroundAction.cpp b/Libraries/LibThread/BackgroundAction.cpp
index f2545d0a5d..a2880dfb3f 100644
--- a/Libraries/LibThread/BackgroundAction.cpp
+++ b/Libraries/LibThread/BackgroundAction.cpp
@@ -24,10 +24,10 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <AK/Queue.h>
#include <LibThread/BackgroundAction.h>
-#include <LibThread/Thread.h>
#include <LibThread/Lock.h>
-#include <AK/Queue.h>
+#include <LibThread/Thread.h>
static LibThread::Lockable<Queue<Function<void()>>>* s_all_actions;
static LibThread::Thread* s_background_thread;
diff --git a/Libraries/LibThread/BackgroundAction.h b/Libraries/LibThread/BackgroundAction.h
index b7b5b0810c..76de180cd7 100644
--- a/Libraries/LibThread/BackgroundAction.h
+++ b/Libraries/LibThread/BackgroundAction.h
@@ -46,7 +46,7 @@ class BackgroundActionBase {
friend class BackgroundAction;
private:
- BackgroundActionBase() {}
+ BackgroundActionBase() { }
static Lockable<Queue<Function<void()>>>& all_actions();
static Thread& background_thread();
@@ -65,7 +65,7 @@ public:
return adopt(*new BackgroundAction(move(action), move(on_complete)));
}
- virtual ~BackgroundAction() {}
+ virtual ~BackgroundAction() { }
private:
BackgroundAction(Function<Result()> action, Function<void(Result)> on_complete)
diff --git a/Libraries/LibThread/Thread.cpp b/Libraries/LibThread/Thread.cpp
index 7828627d30..58db14bbed 100644
--- a/Libraries/LibThread/Thread.cpp
+++ b/Libraries/LibThread/Thread.cpp
@@ -51,7 +51,7 @@ void LibThread::Thread::start()
[](void* arg) -> void* {
Thread* self = static_cast<Thread*>(arg);
size_t exit_code = self->m_action();
- self->m_tid = 0;
+ self->m_tid = 0;
return (void*)exit_code;
},
static_cast<void*>(this));
@@ -64,7 +64,7 @@ void LibThread::Thread::start()
dbg() << "Started a thread, tid = " << m_tid;
}
-void LibThread::Thread::quit(void *code)
+void LibThread::Thread::quit(void* code)
{
ASSERT(m_tid == pthread_self());
diff --git a/Libraries/LibThread/Thread.h b/Libraries/LibThread/Thread.h
index 56a8bc5eb0..cac79380e7 100644
--- a/Libraries/LibThread/Thread.h
+++ b/Libraries/LibThread/Thread.h
@@ -41,7 +41,7 @@ public:
virtual ~Thread();
void start();
- void quit(void *code = 0);
+ void quit(void* code = 0);
private:
Function<int()> m_action;