diff options
author | frosch <frosch@openttd.org> | 2016-10-30 17:29:33 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2016-10-30 17:29:33 +0000 |
commit | 31f046bd9bfec6be5b5a24f113f3b301376763e6 (patch) | |
tree | aa00cd46578f397c91e8238fe9f5a8b462b52b38 /src/thread/thread.h | |
parent | dd190397d6cf16a731dd05a7f722eb76ad21c01f (diff) | |
download | openttd-31f046bd9bfec6be5b5a24f113f3b301376763e6.tar.xz |
(svn r27670) -Add: [FS#6471] Assign descriptive names to (GNU pthread) threads. (JGR)
Diffstat (limited to 'src/thread/thread.h')
-rw-r--r-- | src/thread/thread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread/thread.h b/src/thread/thread.h index b944a53b9..07831bb4b 100644 --- a/src/thread/thread.h +++ b/src/thread/thread.h @@ -44,9 +44,10 @@ public: * @param proc The procedure to call inside the thread. * @param param The params to give with 'proc'. * @param thread Place to store a pointer to the thread in. May be NULL. + * @param name A name for the thread. May be NULL. * @return True if the thread was started correctly. */ - static bool New(OTTDThreadFunc proc, void *param, ThreadObject **thread = NULL); + static bool New(OTTDThreadFunc proc, void *param, ThreadObject **thread = NULL, const char *name = NULL); }; /** |