Changeset 31e15be in mainline for kernel/generic/src


Ignore:
Timestamp:
2021-08-04T15:18:08Z (4 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
98a935e
Parents:
de38873
git-author:
Dmitry Selyutin <ghostmansd@…> (2020-12-23 21:59:08)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-08-04 15:18:08)
Message:

kernel: deprecate atomic_t

Location:
kernel/generic/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/lib/halt.c

    rde38873 r31e15be  
    3636 */
    3737
     38#include <stdbool.h>
    3839#include <halt.h>
    3940#include <log.h>
     
    4445
    4546/** Halt flag */
    46 atomic_t haltstate = 0;
     47atomic_bool haltstate = false;
    4748
    4849/** Halt wrapper
     
    5758
    5859        if (!atomic_load(&haltstate)) {
    59                 atomic_store(&haltstate, 1);
     60                atomic_store(&haltstate, true);
    6061                rundebugger = true;
    6162        }
    6263#else
    63         atomic_store(&haltstate, 1);
     64        atomic_store(&haltstate, true);
    6465#endif
    6566
  • kernel/generic/src/proc/scheduler.c

    rde38873 r31e15be  
    6868static void scheduler_separated_stack(void);
    6969
    70 atomic_t nrdy;  /**< Number of ready threads in the system. */
     70atomic_size_t nrdy;  /**< Number of ready threads in the system. */
    7171
    7272/** Carry out actions before new task runs. */
Note: See TracChangeset for help on using the changeset viewer.