#include <dlfcn.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/wait.h>
#include <semaphore.h>
#include <stdbool.h>
#include <netdb.h>
#include <arpa/inet.h>
#include "kernel_print.h"
#include "kernel_engine.h"
#include "../src/ename.c.inc"
Go to the source code of this file.
◆ BUF_SIZE
◆ KERNEL_UNIQUEPTR_H
#define KERNEL_UNIQUEPTR_H |
◆ MAX_STRING_SIZE
#define MAX_STRING_SIZE 100 |
◆ NUM_THREADS
◆ RELEASE_SHARED_PTR
#define RELEASE_SHARED_PTR |
( |
| ptr | ) |
|
Value:
void release_shared_ptr(SharedPtr *sp)
shared_ptr 참조 카운트 감소 및 메모리 해제
Definition at line 32 of file kernel_uniqueptr.h.
◆ RETAIN_SHARED_PTR
#define RETAIN_SHARED_PTR |
( |
| ptr | ) |
|
Value:
void retain_shared_ptr(SharedPtr *sp)
shared_ptr 참조 카운트 증가
Definition at line 31 of file kernel_uniqueptr.h.
◆ create_shared_ptr()
SharedPtr create_shared_ptr |
( |
size_t | size, |
|
|
void(* | deleter )(void *) ) |
◆ create_unique_ptr()
UniquePtr create_unique_ptr |
( |
size_t | size, |
|
|
void(* | deleter )(void *) ) |
unique_ptr 생성 함수
클라이언트 정보를 스마트 포인터로 관리하는 배열
- Parameters
-
size | 할당할 메모리 크기 |
deleter | 소멸자 함수 |
- Returns
- 생성된 UniquePtr 구조체
Definition at line 89 of file kernel_uniqueptr.h.
◆ default_deleter()
void default_deleter |
( |
void * | ptr | ) |
|
◆ release_shared_ptr()
◆ release_unique_ptr()
◆ retain_shared_ptr()
◆ thread_function_shared()
void * thread_function_shared |
( |
void * | arg | ) |
|
◆ thread_function_unique()
void * thread_function_unique |
( |
void * | arg | ) |
|
◆ transfer_unique_ptr()