Object-oriented operating system
an operating system and object technology, applied in the field of object-oriented computing environments, can solve the problems of linguistic approach wreak havoc, program and window flexibility loses almost all their flexibility, and services provided by the operating system cannot be accessed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
code example 1
[0219]
void TThreadHandle::Kill( ){ kern_return_t error; if((error = thread_terminate(fThreadControlPort)) != KERN_SUCCESS) THROW(TKernelException( )); / / Error indicator}
code example 2
Where:
[0220]fThreadControlPort is an instance variable of the TThreadHandle class that contains the Mach thread control port for the thread the class represents.
[0221]TKernelException is the C++ exception class that is thrown when a kernel routine gets an error.
[0222]THROW, TRY, CATCH, and ENDTRY are part of the C++ language that allow you to throw and catch C++ exceptions.
The implementation of the suspend( ) method from the TTaskHandle class of the task classes 406 is shown in Code Example 4, below. A routine called “example2” is shown in Code Example 3, below. The “example2” routine includes a decomposition statement which causes the suspend( ) method to be executed.
void example2(TTaskHandle& aTask){ TRY { aTask.Suspend( ); / / suspend all threads on task aTask } CATCH(TKernelException) ( printf(”Couldn't suspend threads\n”); / / error occured } ENDTRY; / / ...}
code example 3
[0223]
void TTaskHandle::Suspend( ){ kern_return_t error; if((error = task_suspend(fTaskControlPort)) != KERN_SUCCESS) THROW(TKernelException( )); / / Error indicator}
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com