summaryrefslogtreecommitdiff
path: root/test/regression/interoperability_test/test_frame/tls_test_semaphore_destroy.c
blob: 0638931dabe874520cc9a8d33a917c98e8ba034e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/***************************************************************************/
/* Copyright (c) 2024 Microsoft Corporation                                */
/* Copyright (c) 2026 Eclipse ThreadX contributors                         */
/*                                                                         */
/* This program and the accompanying materials are made available under    */
/* the terms of the MIT License which is available at                      */
/* https://opensource.org/licenses/MIT.                                    */
/*                                                                         */
/* SPDX-License-Identifier: MIT                                            */
/***************************************************************************/

#include "tls_test_frame.h"

/* Release the shared memory of the semaphore. */
INT tls_test_semaphore_destroy(TLS_TEST_SEMAPHORE* semaphore_ptr)
{
    INT status = sem_destroy(semaphore_ptr);
    return_value_if_fail(-1 != status, TLS_TEST_SYSTEM_CALL_FAILED);
    return TLS_TEST_SUCCESS;
}