hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
YoiIntAndIntObject Struct Reference

#include <time.h>

Static Public Member Functions

static void gc_refcount_decrease (YoiIntAndIntObject *obj)
 
static YoiIntAndIntObjectcreate (int64_t seconds, int64_t nanoseconds)
 

Public Attributes

unsigned long long gc_refcount
 
unsigned long long type_id
 
unsigned long long seconds
 
unsigned long long nanoseconds
 
void * weak_slots_head
 

Detailed Description

Definition at line 23 of file time.h.

Member Function Documentation

◆ create()

YoiIntAndIntObject * create ( int64_t  seconds,
int64_t  nanoseconds 
)
static

Definition at line 162 of file time.cpp.

References gc_refcount, nanoseconds, runtime_object_alloc(), and seconds.

Referenced by runtime_time_monotonic_now(), and runtime_time_now().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gc_refcount_decrease()

void gc_refcount_decrease ( YoiIntAndIntObject obj)
static

Definition at line 155 of file time.cpp.

References gc_refcount, runtime_finalize_object(), runtime_weak_slot_nullify_all(), and weak_slots_head.

Here is the call graph for this function:

Member Data Documentation

◆ gc_refcount

unsigned long long gc_refcount

Definition at line 24 of file time.h.

Referenced by create(), and gc_refcount_decrease().

◆ nanoseconds

unsigned long long nanoseconds

Definition at line 27 of file time.h.

Referenced by create().

◆ seconds

unsigned long long seconds

Definition at line 26 of file time.h.

Referenced by create().

◆ type_id

unsigned long long type_id

Definition at line 25 of file time.h.

◆ weak_slots_head

void* weak_slots_head

Definition at line 28 of file time.h.

Referenced by gc_refcount_decrease().


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