Panda3D
panda
src
event
asyncTaskPause.cxx
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file asyncTaskPause.cxx
10
* @author drose
11
* @date 2008-10-04
12
*/
13
14
#include "
asyncTaskPause.h
"
15
16
TypeHandle
AsyncTaskPause::_type_handle;
17
18
/**
19
*
20
*/
21
AsyncTaskPause::
22
AsyncTaskPause(
double
delay) :
23
AsyncTask
(
"pause"
)
24
{
25
set_delay(delay);
26
}
27
28
/**
29
* Override this function to do something useful for the task.
30
*
31
* This function is called with the lock *not* held.
32
*/
33
AsyncTask::DoneStatus AsyncTaskPause::
34
do_task() {
35
return
DS_pause;
36
}
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
AsyncTask
This class represents a concrete task performed by an AsyncManager.
Definition:
asyncTask.h:32
asyncTaskPause.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Sat Jan 11 2020 15:15:00 for Panda3D by
1.8.17