Changeset 25ef81d


Ignore:
Timestamp:
Dec 11, 2022, 9:02:05 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
d8bdf13
Parents:
3ff64cb
Message:

formatting, remove unnecessary temporary variable in prng function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/thread.cfa

    r3ff64cb r25ef81d  
    1010// Created On       : Tue Jan 17 12:27:26 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Dec  9 15:13:04 2022
    13 // Update Count     : 98
     12// Last Modified On : Sun Dec 11 20:56:54 2022
     13// Update Count     : 102
    1414//
    1515
     
    182182//-----------------------------------------------------------------------------
    183183bool migrate( thread$ * thrd, struct cluster & cl ) {
    184 
    185184        monitor$ * tmon = get_monitor(thrd);
    186185        monitor$ * __monitors[] = { tmon };
    187186        monitor_guard_t __guard = { __monitors, 1 };
    188 
    189 
    190187        {
    191188                // if nothing needs to be done, return false
     
    237234
    238235size_t prng( void ) {                                                                   // [0,UINT_MAX]
    239         PRNG_STATE_T( & state ) = active_thread()->random_state;
    240         return PRNG_NAME( state );
     236        return PRNG_NAME( active_thread()->random_state );
    241237} // prng
    242238
Note: See TracChangeset for help on using the changeset viewer.