Replaced Common::Thread with a partial implementation of std::thread. (rvalue references are used if available, <thread> is used if possible) Eliminates the need to use dynamic memory allocation for threads, so it's impossible to forget to delete a thread or set a pointer to NULL. Enables use of type-safe thread functions, no need to cast to and from void*. I've made sure the code compiles in vs08 and tested the functionality of "StdThread.h" on Linux so I'm hoping everything will work :p. In the future "StdThread.h" can be removed (maybe when OS X ships with gcc 4.4 and vs2015 is released :p).

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6933 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Jordan Woyak committed 2011-01-27 20:47:58 +00:00
1 parent 0371f15c23
commit 2c05c49a04
29 files changed
+484 -396

No files matched your search

+1 -1
View File
@@ -21,6 +21,7 @@
class UDPWiimote
{
friend void UDPWiiThread(UDPWiimote* arg);
public:
UDPWiimote(const char * port, const char * name, int index);
virtual ~UDPWiimote();
@@ -49,7 +50,6 @@ private:
int index;
int int_port;
static int noinst;
friend void _UDPWiiThread(void* arg);
void broadcastPresence();
void broadcastIPv4(const void * data, size_t size);
void broadcastIPv6(const void * data, size_t size);