1 /*
2     Copyright (c) 2005-2020 Intel Corporation
3 
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7 
8         http://www.apache.org/licenses/LICENSE-2.0
9 
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15 */
16 
17 /*  This compilation unit provides definition of task::destroy( task& )
18     that is binary compatible with TBB 2.x. In TBB 3.0, the method became
19     static, and its name decoration changed, though the definition remained.
20 
21     The macro switch should be set prior to including task.h
22     or any TBB file that might bring task.h up.
23 */
24 #define __TBB_DEPRECATED_TASK_INTERFACE 1
25 #include "tbb/task.h"
26 
27 namespace tbb {
28 
destroy(task & victim)29 void task::destroy( task& victim ) {
30     // Forward to static version
31     task_base::destroy( victim );
32 }
33 
34 } // namespace tbb
35