How to do an atomic increment and fetch in C?

后端 未结 2 1851
离开以前
离开以前 2020-12-03 14:59

I\'m looking for a way to atomically increment a short, and then return that value. I need to do this both in kernel mode and in user mode, so it\'s in C, under Linux, on In

2条回答
提交回复
热议问题