polar-objc 5.44
An Objective-C runtime library
Loading...
Searching...
No Matches
polar-thread-class-cache-node.c
1/* Internal API: per-thread class cache node type for polar-objc.
2 Copyright (C) 2022-2025 Michael Malicoat <[email protected]>
3
4 This file is part of polar-objc.
5
6 polar-objc is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
8
9 polar-objc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
10 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11 details.
12
13 You should have received a copy of the GNU General Public License along with this program; see the file LICENSE. If
14 not, see <http://www.gnu.org/licenses/>.
15*/
16
17// polar_thread_class_cache_node ***************************************************************************************
18// Private =============================================================================================================
19
20// This variable is initialized in polar_thread_class_cache_node_get_type()
21static polar_thread_class_cache_node_class class_polar_thread_class_cache_node;
22
23// This variable is initialized in _polar_thread_class_cache_node_class_init()
24//static polar_runtime_object_class *superclass_polar_thread_class_cache_node = NULL;
25
26// ---------------------------------------------------------------------------------------------------------------------
27
28POLAR_FUNCTION_INTERNAL void
29_polar_thread_class_cache_node_class_init( polar_thread_class_cache_node_class *self )
30{
31 // Acquire our superclass
32 //superclass_polar_thread_class_cache_node = POLAR_RUNTIME_OBJECT_CLASS(self)->class_superclass;
33
34 // Establish our virtual methods
35}
36
37static struct polar_internal_type_info pti_polar_thread_class_cache_node =
38{
39 .name_type = "polar_thread_class_cache_node",
40 .size_type_instance = sizeof(polar_thread_class_cache_node),
41 .size_type_class = sizeof(polar_thread_class_cache_node_class),
42 .type_class_init = (polar_func_runtime_object_class_lifecycle)_polar_thread_class_cache_node_class_init
43};
44
45// Public ==============================================================================================================
46
47POLAR_FUNCTION_INTERNAL OBJC_FUNCTION_CONSTANT polar_internal_type
48polar_thread_class_cache_node_get_type( void )
49{
50 static polar_internal_type pt_polar_thread_class_cache_node = POLAR_INTERNAL_TYPE_INVALID;
51
52 if( pt_polar_thread_class_cache_node != POLAR_INTERNAL_TYPE_INVALID )
53 return pt_polar_thread_class_cache_node;
54
55 pt_polar_thread_class_cache_node = polar_internal_type_init( POLAR_TYPE_HASH_TABLE_NODE_STRING_KEY,
56 &class_polar_thread_class_cache_node,
57 &pti_polar_thread_class_cache_node );
58
59 return pt_polar_thread_class_cache_node;
60}
61
Definition polar-internal-type.h:34
Definition polar-thread-class-cache-node.h:30
Definition polar-thread-class-cache-node.h:24