src/brpc/details/usercode_backup_pool.h
inline void RunUserCode(void (*fn)(void*), void* arg) {
    if (BeginRunningUserCode()) {
        fn(arg);
        EndRunningUserCodeInPlace();
    } else {
        EndRunningUserCodeInPool(fn, arg);
    }
}
// Incorporate functions above together. However `arg' to this function often
// has to be new-ed even for in-place cases. If performance is critical, use
// the BeginXXX/EndXXX pattern.
Incorporate functions above together. However `arg' to this function often
has to be new-ed even for in-place cases. If performance is critical, use
the BeginXXX/EndXXX pattern.
Incorporate functions above together . However ` arg ' to this function often has to be new - ed even for in - place cases . If performance is critical use the BeginXXX / EndXXX pattern .
inline void RunUserCode(void (*fn)(void*), void* arg) {
    if (BeginRunningUserCode()) {
        fn(arg);
        EndRunningUserCodeInPlace();
    } else {
        EndRunningUserCodeInPool(fn, arg);
    }
}
inline void RunUserCode ( void ( * fn ) ( void * ) , void * arg ) { if ( BeginRunningUserCode ( ) ) { fn ( arg ) ; EndRunningUserCodeInPlace ( ) ; } else { EndRunningUserCodeInPool ( fn , arg ) ; } }
Incorporate functions above together.
Incorporate functions above together .