Changeset 7f1c620 in mainline for generic/include/proc/thread.h


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/proc/thread.h

    r991779c5 r7f1c620  
    143143        task_t *task;                           /**< Containing task. */
    144144
    145         __u64 ticks;                            /**< Ticks before preemption. */
     145        uint64_t ticks;                         /**< Ticks before preemption. */
    146146
    147147        int priority;                           /**< Thread's priority. Implemented as index to CPU->rq */
    148         __u32 tid;                              /**< Thread ID. */
     148        uint32_t tid;                           /**< Thread ID. */
    149149       
    150150        thread_arch_t arch;                     /**< Architecture-specific data. */
    151151
    152         __u8 *kstack;                           /**< Thread's kernel stack. */
     152        uint8_t *kstack;                                /**< Thread's kernel stack. */
    153153};
    154154
     
    172172#endif
    173173
    174 extern void thread_sleep(__u32 sec);
    175 extern void thread_usleep(__u32 usec);
     174extern void thread_sleep(uint32_t sec);
     175extern void thread_usleep(uint32_t usec);
    176176
    177177#define thread_join(t)  thread_join_timeout((t), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE)
    178 extern int thread_join_timeout(thread_t *t, __u32 usec, int flags);
     178extern int thread_join_timeout(thread_t *t, uint32_t usec, int flags);
    179179extern void thread_detach(thread_t *t);
    180180
     
    188188
    189189/** Thread syscall prototypes. */
    190 __native sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name);
    191 __native sys_thread_exit(int uspace_status);
     190unative_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name);
     191unative_t sys_thread_exit(int uspace_status);
    192192
    193193#endif
Note: See TracChangeset for help on using the changeset viewer.