xref: /f-stack/lib/include/sys/turnstile.h (revision 2317ada5)
122ce4affSfengbojiang /*
222ce4affSfengbojiang  * Copyright (c) 2010 Kip Macy All rights reserved.
3*2317ada5Sfengbojiang  * Copyright (C) 2017-2021 THL A29 Limited, a Tencent company.
422ce4affSfengbojiang  * All rights reserved.
522ce4affSfengbojiang  *
622ce4affSfengbojiang  * Redistribution and use in source and binary forms, with or without
722ce4affSfengbojiang  * modification, are permitted provided that the following conditions are met:
822ce4affSfengbojiang  *
922ce4affSfengbojiang  * 1. Redistributions of source code must retain the above copyright notice, this
1022ce4affSfengbojiang  *   list of conditions and the following disclaimer.
1122ce4affSfengbojiang  * 2. Redistributions in binary form must reproduce the above copyright notice,
1222ce4affSfengbojiang  *   this list of conditions and the following disclaimer in the documentation
1322ce4affSfengbojiang  *   and/or other materials provided with the distribution.
1422ce4affSfengbojiang  *
1522ce4affSfengbojiang  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1622ce4affSfengbojiang  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1722ce4affSfengbojiang  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1822ce4affSfengbojiang  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
1922ce4affSfengbojiang  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2022ce4affSfengbojiang  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
2122ce4affSfengbojiang  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
2222ce4affSfengbojiang  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2322ce4affSfengbojiang  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2422ce4affSfengbojiang  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2522ce4affSfengbojiang  *
2622ce4affSfengbojiang  */
2722ce4affSfengbojiang 
2822ce4affSfengbojiang #ifndef _FSTACK_SYS_TURNSTILE_H_
2922ce4affSfengbojiang #define _FSTACK_SYS_TURNSTILE_H_
3022ce4affSfengbojiang 
3122ce4affSfengbojiang #include_next <sys/turnstile.h>
3222ce4affSfengbojiang 
3322ce4affSfengbojiang #define turnstile_lock(a, b, c) (false)
3422ce4affSfengbojiang #define turnstile_unlock(a, b) do {} while(0)
3522ce4affSfengbojiang 
3622ce4affSfengbojiang #endif    /* _FSTACK_SYS_TURNSTILE_H_ */
37