Changeset 508b0df1 in mainline for uspace/srv/vfs/vfs_register.c


Ignore:
Timestamp:
2018-09-06T20:21:52Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
78de83de, fc10e1b
Parents:
4621d23
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-13 03:53:39)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-09-06 20:21:52)
Message:

Remove uspace <atomic.h>, use <stdatomic.h> instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_register.c

    r4621d23 r508b0df1  
    4949#include <as.h>
    5050#include <assert.h>
    51 #include <atomic.h>
     51#include <stdatomic.h>
    5252#include <vfs/vfs.h>
    5353#include "vfs.h"
     
    5757LIST_INITIALIZE(fs_list);
    5858
    59 atomic_t fs_handle_next = {
    60         .count = 1
    61 };
     59static atomic_int fs_handle_next = 1;
    6260
    6361/** Verify the VFS info structure.
     
    236234         * system a global file system handle.
    237235         */
    238         fs_info->fs_handle = (fs_handle_t) atomic_postinc(&fs_handle_next);
     236        fs_info->fs_handle = atomic_fetch_add(&fs_handle_next, 1);
    239237        async_answer_1(req, EOK, (sysarg_t) fs_info->fs_handle);
    240238
Note: See TracChangeset for help on using the changeset viewer.