annotate src/modules/thread/ThreadModule.h @ 493:150b94a9f11f

bringing in the new year by changing every 2010 to 2011
author Bill Meltsner <bill@meltsner.com>
date Sat, 15 Jan 2011 14:40:27 -0600
parents 4a4eb9c3984d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
260
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
1 /**
493
150b94a9f11f bringing in the new year by changing every 2010 to 2011
Bill Meltsner <bill@meltsner.com>
parents: 263
diff changeset
2 * Copyright (c) 2006-2011 LOVE Development Team
260
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
3 *
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
4 * This software is provided 'as-is', without any express or implied
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
5 * warranty. In no event will the authors be held liable for any damages
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
6 * arising from the use of this software.
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
7 *
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
8 * Permission is granted to anyone to use this software for any purpose,
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
9 * including commercial applications, and to alter it and redistribute it
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
10 * freely, subject to the following restrictions:
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
11 *
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
12 * 1. The origin of this software must not be misrepresented; you must not
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
13 * claim that you wrote the original software. If you use this software
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
14 * in a product, an acknowledgment in the product documentation would be
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
15 * appreciated but is not required.
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
16 * 2. Altered source versions must be plainly marked as such, and must not be
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
17 * misrepresented as being the original software.
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
18 * 3. This notice may not be removed or altered from any source distribution.
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
19 **/
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
20
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
21 #ifndef LOVE_THREAD_THREAD_H
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
22 #define LOVE_THREAD_THREAD_H
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
23
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
24 #include <common/Module.h>
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
25 #include <string>
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
26
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
27 namespace love
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
28 {
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
29 namespace thread
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
30 {
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
31 class ThreadModule : public Module
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
32 {
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
33 public:
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
34 virtual ~ThreadModule(){};
263
4a4eb9c3984d Changed unnecessary pass-by-value to pass-by-reference.
rude
parents: 260
diff changeset
35 virtual void unregister(const std::string & name) = 0;
260
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
36 }; // ThreadModule
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
37
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
38 } // thread
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
39 } // love
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
40
4acca629382a Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
rude
parents:
diff changeset
41 #endif // LOVE_THREAD_THREAD_H