summaryrefslogtreecommitdiff
path: root/src/timer.c
AgeCommit message (Collapse)Author
2019-01-13[Kernel] Enable RUNNING status in thread.Bernard Xiong
2018-11-13[kernel]Change 'rt_timer_timeout_hook' function to 'rt_timer_enter_hook' and ↵guozhanxin
add 'rt_timer_exit_hook' hook function.
2018-09-25[Kernel] Adjust the copyright informationBernard Xiong
2018-09-14[Kernel] Update to Apache License v2.0Bernard Xiong
Update license for RT-Thread kernel.
2018-08-23[src][timer.c]:modify -RT_EOK to RT_EOKyangjie
2018-07-11[kernel] add assert to timer objectliang yongxiang
2018-03-01[Kernel] add sigwait implementationBernardXiong
2017-10-15[Kernel] Add signal implementation.bernard
1. Add signal implementation; 2. Change the 'rt_uint8_t' of cmd to 'int';
2017-09-15根据documentation/coding_style_cn.txt约定 ↵emlslxl
对内核src和include目录下的文件代码进行格式化
2016-08-19Correct comments about doxygen formatdogandog
chang /*@{*/ to /**@{*/ and /*@}*/ to /**@}*/
2014-10-14kernel/timer: change row_lvl to unsignedGrissiom
Use signed int as array index is unsecure.
2014-07-16src/timer: fix a compile warningGrissiom
2014-07-12[Kernel] system does not lock scheduler when invoking soft-timer timeout ↵bernard
function.
2013-10-19kernel: timer: fix compiling bug in d59aa279c37b7Grissiom
2013-10-12kernel: use skip list to implement timer listGrissiom
Skip list is a "random" data structure that in high possibilities it would get O(log(N)) time complexity in inserting while the old list get O(N). Forthermore, when set RT_TIMER_SKIP_LIST_LEVEL to 1, it will just the same as the old double linked list, both in time and space complexity. Benchmarks shows that when RT_TIMER_SKIP_LIST_LEVEL is 3, the average time of random insertion of new timer is about 2 times faster than the old timer when there are 100 timers and 3 times faster when there are 200 timers. However, it restores the deprecated funcion rt_system_timer_init. BSPs must invoke it upon system startup.
2013-06-24Embedded GPLv2 license.Bernard Xiong
2013-01-17more deterministic on timerGrissiom
If two timer will timeout at the same tick, the one started later will be called later. I've tested the patch on simulator and it _seems_ OK. Reported-by: xdzy on the forum and delin17 <[email protected]>
2012-12-18fixed the coding style[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2493 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-15fix the next timeout issue in soft timer[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2484 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-08Fixed timer control issue. [email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2323 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-27split export symbols from rtm.c to each file[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2263 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-02unify coding style in timer.c[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2149 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-05-16fixed module unload issue; code cleanup for timer.c [email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2119 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-05-05remove soft timer tick increase[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2108 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-14cleanup code comments and deprecate rt_system_timer_init function.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2045 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-03-22move src\kservice.h to include\rtservice.h.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2005 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-03-17unify the coding style of kerneldzzxzz
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1998 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-09-21cleanup kernel codedzzxzz
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1715 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-14change the RT_DEBUG_NOT_REENT to RT_DEBUG_NOT_IN_INTERRUPT.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1503 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-12Add reentrance check. Put kernel debug switch together.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1494 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-12-08add IAR compiler version check in weak; add rt_malloc_page/rt_free_page for ↵[email protected]
application module; fix the software timer thread stack issue. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1183 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-29update doxygen comments.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1132 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-25apply new tick overflow patch from Charlie[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1117 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-05-22fix the timer check bug.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@730 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-04-14add __ICCM16C__ compiler support.bernard.xiong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@621 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-12-25add license and copyright infobernard.xiong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@226 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-12-24clean up software timer code.bernard.xiong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@222 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-12-23changed soft timer thread resume mode.lijin.unix
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@220 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-12-23remove the software timer check in tick handle.bernard.xiong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@219 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-12-22add soft timer.other's platform maybe compiled err,pls add some macro ↵lijin.unix
definition in rtconfig.h. ( RT_TIMER_THREAD_STACK_SIZE RT_TIMER_THREAD_PRIO RT_TIMER_EX_TICKS_PER_SEC) git-svn-id: https://rt-thread.googlecode.com/svn/trunk@215 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-10-19fix timer re-start issue if stop a timer in itself timeout_func.bernard.xiong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@107 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-07-02import RT-Thread RTOS 0.3.x to Google SVNbernard.xiong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2 bbd45198-f89e-11dd-88c7-29a3b14d5316