Panda3D
asyncTaskPause.cxx
1 // Filename: asyncTaskPause.cxx
2 // Created by: drose (04Oct08)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "asyncTaskPause.h"
16 
17 TypeHandle AsyncTaskPause::_type_handle;
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: AsyncTaskPause::Constructor
21 // Access: Published
22 // Description:
23 ////////////////////////////////////////////////////////////////////
24 AsyncTaskPause::
25 AsyncTaskPause(double delay) :
26  AsyncTask("pause")
27 {
28  set_delay(delay);
29 }
30 
31 ////////////////////////////////////////////////////////////////////
32 // Function: AsyncTaskPause::do_task
33 // Access: Protected, Virtual
34 // Description: Override this function to do something useful for the
35 // task.
36 //
37 // This function is called with the lock *not* held.
38 ////////////////////////////////////////////////////////////////////
39 AsyncTask::DoneStatus AsyncTaskPause::
40 do_task() {
41  return DS_pause;
42 }
This class represents a concrete task performed by an AsyncManager.
Definition: asyncTask.h:43
void set_delay(double delay)
Specifies the amount of time, in seconds, by which this task will be delayed after it has been added ...
Definition: asyncTask.I:86
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85