int function ( ) { do { if ( nshSpiId >= MAX_NSH_SPI_ID ) { if ( NSH_SPI_ID_GEN . get ( ) >= MAX_NSH_SPI_ID ) { NSH_SPI_ID_GEN . set ( 0 ) ; } } nshSpiId = NSH_SPI_ID_GEN . incrementAndGet ( ) ; } while ( nshSpiId > MAX_NSH_SPI_ID ) ; return nshSpiId ; }
get the next nsh spi id . concode_field_sep int MAX_NSH_SPI_ID concode_elem_sep int nshSpiId concode_elem_sep AtomicInteger NSH_SPI_ID_GEN concode_field_sep placeholderType placeHolder