Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Attributes

# TaskThreaded Class Reference

List of all members.

## Public Member Functions
def | __init__
def | destroy
def | finished
def | getTimeslice
def | scheduleCallback
def | scheduleThread
def | setTimeslice
def | taskTimeLeft
## Static Public Attributes
tuple | notify = directNotify.newCategory("TaskThreaded")

## Detailed Description

    derive from this if you need to do a bunch of CPU-intensive
    processing and you don't want to hang up the show. Lets you break
    up the processing over multiple frames

## Constructor & Destructor Documentation

def __init__ | ( |  | self,
|  |  | name,
|  |  | threaded = `True`,
|  |  | timeslice = `None`,
|  |  | callback = `None`
| ) |  |

## Member Function Documentation

def destroy | ( |  | self | ) |

def finished | ( |  | self | ) |

def getTimeslice | ( |  | self | ) |

def scheduleCallback | ( |  | self,
|  |  | callback
| ) |  |

def scheduleThread | ( |  | self,
|  |  | thread
| ) |  |

def setTimeslice | ( |  | self,
|  |  | timeslice
| ) |  |

def taskTimeLeft | ( |  | self | ) |

    returns True if there is time left for the current task callback
    to run without going over the allotted timeslice

## Member Data Documentation

tuple notify = directNotify.newCategory("TaskThreaded")`[static]`

All Classes Namespaces Functions Variables Enumerations Enumerator Properties