v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SweeperThread Class Reference

#include <sweeper-thread.h>

Inheritance diagram for SweeperThread:
Collaboration diagram for SweeperThread:

Public Member Functions

 SweeperThread (Isolate *isolate)
 
 ~SweeperThread ()
 
void Run ()
 
void Stop ()
 
void StartSweeping ()
 
void WaitForSweeperThread ()
 
- Public Member Functions inherited from Thread
 Thread (const Options &options)
 
virtual ~Thread ()
 
void Start ()
 
void StartSynchronously ()
 
void Join ()
 
const char * name () const
 
PlatformDatadata ()
 
void NotifyStartedAndRun ()
 

Static Public Member Functions

static int NumberOfThreads (int max_available)
 
- Static Public Member Functions inherited from Thread
static LocalStorageKey CreateThreadLocalKey ()
 
static void DeleteThreadLocalKey (LocalStorageKey key)
 
static void * GetThreadLocal (LocalStorageKey key)
 
static int GetThreadLocalInt (LocalStorageKey key)
 
static void SetThreadLocal (LocalStorageKey key, void *value)
 
static void SetThreadLocalInt (LocalStorageKey key, int value)
 
static bool HasThreadLocal (LocalStorageKey key)
 
static void * GetExistingThreadLocal (LocalStorageKey key)
 
static void YieldCPU ()
 

Additional Inherited Members

- Public Types inherited from Thread
enum  LocalStorageKey { LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt, LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt }
 
- Static Public Attributes inherited from Thread
static const int kMaxThreadNameLength = 16
 

Detailed Description

Definition at line 43 of file sweeper-thread.h.

Constructor & Destructor Documentation

SweeperThread ( Isolate isolate)
explicit

Definition at line 40 of file sweeper-thread.cc.

References ASSERT, and v8::internal::NoBarrier_Store().

~SweeperThread ( )
inline

Definition at line 46 of file sweeper-thread.h.

Member Function Documentation

int NumberOfThreads ( int  max_available)
static

Definition at line 92 of file sweeper-thread.cc.

References ASSERT.

void StartSweeping ( )

Definition at line 82 of file sweeper-thread.cc.

void Stop ( )

Definition at line 74 of file sweeper-thread.cc.

References Thread::Join(), and v8::internal::Release_Store().

void WaitForSweeperThread ( )

Definition at line 87 of file sweeper-thread.cc.

Referenced by MarkCompactCollector::WaitUntilSweepingCompleted().


The documentation for this class was generated from the following files: