platform/core/appfw/tizen-core.git
5 months agoRelease version 0.1.30 91/317991/1 accepted/tizen_unified_x_asan accepted/tizen/unified/20250113.133516 accepted/tizen/unified/20250114.104247 accepted/tizen/unified/x/20250114.041836 accepted/tizen/unified/x/asan/20250211.003341
Hwankyu Jhun [Fri, 10 Jan 2025 10:17:27 +0000 (19:17 +0900)]
Release version 0.1.30

Changes:
 - Fix double free issue

Change-Id: I68c14732ac583ce82c75f17c851ce12616530d30
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
5 months agoFix double free issue 85/317985/3
pjh9216 [Fri, 10 Jan 2025 09:01:15 +0000 (18:01 +0900)]
Fix double free issue

Change-Id: I9776ef666c04f4d2951d856283311d97b31c2926
Signed-off-by: pjh9216 <jh9216.park@samsung.com>
5 months agoRelease version 0.1.29 93/317693/1 accepted/tizen/unified/20250108.103321 accepted/tizen/unified/x/20250108.225137
pjh9216 [Tue, 7 Jan 2025 01:19:05 +0000 (10:19 +0900)]
Release version 0.1.29

Changes: - Refactor tcore
Change-Id: I1bc43a193755e9015fbe67e9d3a169154a68065d
Signed-off-by: pjh9216 <jh9216.park@samsung.com>
5 months agoMerge "Refactor tcore" into tizen
Junghoon Park [Tue, 7 Jan 2025 01:17:31 +0000 (01:17 +0000)]
Merge "Refactor tcore" into tizen

5 months agoRefactor tcore 76/317576/10
pjh9216 [Fri, 3 Jan 2025 08:22:07 +0000 (17:22 +0900)]
Refactor tcore

Change-Id: Ief2d505b76db6d05e47762ddc847e73923a78006
Signed-off-by: pjh9216 <jh9216.park@samsung.com>
5 months agoRelease version 0.1.28 05/317605/1
Changgyu Choi [Mon, 6 Jan 2025 00:53:59 +0000 (09:53 +0900)]
Release version 0.1.28

Changes:
 - Make ChannelObject as move only class
 - Fix heap use after free issue

Change-Id: I965193c3ad6f0129764b2370e7356e24ad7225f8
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
5 months agoFix heap use after free issue 17/317517/1
Changgyu Choi [Fri, 3 Jan 2025 04:30:18 +0000 (13:30 +0900)]
Fix heap use after free issue

To resolve UAF issue, source object must be maintained until end of the UnrefSelf().

Change-Id: If8017e0bb220f4f63f4cd771f46ebf8110c8fcdc
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
5 months agoMake ChannelObject as move only class 56/316956/2
pjh9216 [Fri, 20 Dec 2024 08:12:28 +0000 (17:12 +0900)]
Make ChannelObject as move only class

- Because this object would be sent to other thread, move only class is
  more safe and fast

Change-Id: I6ec5a9b275a027cf3a269ab6b7ca3719a34676f4
Signed-off-by: pjh9216 <jh9216.park@samsung.com>
7 months agoRelease version 0.1.27 92/320292/1 accepted/tizen/9.0/unified/20241113.053356 accepted/tizen/unified/20241113.042408 accepted/tizen/unified/x/20241207.045438 accepted/tizen/unified/x/asan/20241224.004333
newb1e [Tue, 12 Nov 2024 09:07:06 +0000 (18:07 +0900)]
Release version 0.1.27

Changes:
 - Fix UAF due to context swithing while access loop

Change-Id: I9c8f9cb91bcd961b17ca632b7391bc850c18b138
Signed-off-by: newb1e <jihoi.kim@samsung.com>
7 months agoFix UAF due to context swithing while access loop 88/320288/4
newb1e [Tue, 12 Nov 2024 07:27:12 +0000 (16:27 +0900)]
Fix UAF due to context swithing while access loop

loop_ member variable can be accessed by both worker and main.
It can cause UAF or glib reference error.
This patch make functions related to loop_ atomic.

- Apply mutex locking when access loop_ member variable
- Task::Dispose now verify loop_ is removed well (wait if need)

Change-Id: I94147fc00bb1ccb64f11fe5543ff92a50a1f67af
Signed-off-by: newb1e <jihoi.kim@samsung.com>
7 months agoRelease version 0.1.26 35/320035/1
Changgyu Choi [Thu, 7 Nov 2024 03:29:46 +0000 (12:29 +0900)]
Release version 0.1.26

Changes:
 - Fix heap-use-after-free issue

Change-Id: Ia47537b5adeb364ba931e335ba86750f9b91a61a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoFix heap-use-after-free issue 26/320026/2
Changgyu Choi [Thu, 7 Nov 2024 01:47:16 +0000 (10:47 +0900)]
Fix heap-use-after-free issue

The self of the Task object must be maintained until the thread method scope terminated.

backtrace:
==8012==ERROR: AddressSanitizer: heap-use-after-free on address 0xb3b0a69c at pc 0xb69743b7 bp 0xb2cfeba0 sp 0xb2cfeba4
WRITE of size 4 at 0xb3b0a69c thread T1 (sender)
    #0 0xb69743b4 in operator() /usr/src/debug/tizen-core-0.1.25-0.arm/src/tizen-core/task.cc:250
    #1 0xb69743b4 in __invoke_impl<void, tizen_core::Task::Run()::<lambda()> > /usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0/include/c++/bits/invoke.h:60
    #2 0xb69743b4 in __invoke<tizen_core::Task::Run()::<lambda()> > /usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0/include/c++/bits/invoke.h:95
    #3 0xb69743b4 in _M_invoke<0> /usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0/include/c++/thread:244
    #4 0xb69743b4 in operator() /usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0/include/c++/thread:251
    #5 0xb69743b4 in _M_run /usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0/include/c++/thread:195
    #6 0xb685f512  (/lib/libstdc++.so.6+0xa0512)
    #7 0xb6a37936  (/lib/libasan.so.6+0x33936)
    #8 0xb6607434  (/lib/libpthread.so.0+0x7434)

Change-Id: I723145fefead941ee26e8e317c7bab7ee8b2c983
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
7 months agoRelease version 0.1.25 56/319856/1 accepted/tizen/unified/20241106.141113
Hwankyu Jhun [Mon, 4 Nov 2024 23:42:56 +0000 (08:42 +0900)]
Release version 0.1.25

Changes:
 - Fix use after free issue

Change-Id: I67bb64404769fc3bdafe26eca3808cc56ece2215
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoFix use after free issue 47/319847/1
Hwankyu Jhun [Mon, 4 Nov 2024 11:35:00 +0000 (20:35 +0900)]
Fix use after free issue

When the task instance is deleted before returning the ThreadLoop method,
it causes the use-after-free issue. This patch adds the local variable
not to remove the task instance before returning the ThreadLoop method.

Change-Id: I31f98586965f483f2258ff72f933a06589d2d3ac
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 0.1.24 99/319699/1 accepted/tizen/9.0/unified/20241104.170100 accepted/tizen/unified/20241105.042045 accepted/tizen/unified/20241108.105541
Hwankyu Jhun [Wed, 30 Oct 2024 10:14:23 +0000 (19:14 +0900)]
Release version 0.1.24

Changes:
 - Separate the thread of execution from thread object

Change-Id: I02513774de86970cc1500429527edd681896f047
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoSeparate the thread of execution from thread object 97/319697/1
Hwankyu Jhun [Wed, 30 Oct 2024 10:08:39 +0000 (19:08 +0900)]
Separate the thread of execution from thread object

If the current thread is equal to the thread object, the task
calls thread_.dectach() to separate the thread of execution from the
thread object.

Change-Id: I89587f554bb8dc69381e8af814e96d0970186951
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 0.1.23 97/319597/1
Hwankyu Jhun [Mon, 28 Oct 2024 08:14:06 +0000 (17:14 +0900)]
Release version 0.1.23

Changes:
 - Fix use after free

Change-Id: Icebde768ad94dc9b209fa4b73b73a8783bd6f34a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoFix use after free 93/319593/1
Hwankyu Jhun [Mon, 28 Oct 2024 07:31:51 +0000 (16:31 +0900)]
Fix use after free

While the sub thread checks the event source has items, the main thread
can remove the source. In this case, the sub thread faces the issue about
use-after-free. This patch uses the idler to release the tizen core source.

Change-Id: Ib649112d5289725787d04d0fdfdf87f22a5d792d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.1.22 62/318762/1 accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.235820 accepted/tizen/unified/20241011.010640 accepted/tizen/unified/toolchain/20241022.122425 accepted/tizen/unified/toolchain/20241022.122903 accepted/tizen/unified/x/20241011.021807 accepted/tizen/unified/x/asan/20241013.235904 tizen_9.0_m2_release
Hwankyu Jhun [Tue, 8 Oct 2024 03:56:38 +0000 (12:56 +0900)]
Release version 0.1.22

Changes:
 - Fix use after free

Change-Id: I572426559db0f0012e80718e5f3c9a88592ec9f4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoFix use after free 95/318695/2
Hwankyu Jhun [Tue, 8 Oct 2024 00:24:59 +0000 (09:24 +0900)]
Fix use after free

To fix heap-use-after-free issue, this patch adds a mutex for critical section.

Change-Id: Idf1c9cdefc0c9c683747104a5ee70f3af8ab8b0e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 0.1.21 82/317882/1 accepted/tizen_unified_dev accepted/tizen/unified/20240920.172820 accepted/tizen/unified/dev/20240924.080604 accepted/tizen/unified/toolchain/20241004.101543 accepted/tizen/unified/x/20240923.021153
Hwankyu Jhun [Fri, 20 Sep 2024 04:04:38 +0000 (13:04 +0900)]
Release version 0.1.21

Changes:
 - Set nullptr to the data of channel object

Change-Id: I97572774901f2b0b0e586b41f465f3c8f3855a4f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoSet nullptr to the data of channel object 76/317876/1
Hwankyu Jhun [Fri, 20 Sep 2024 02:24:00 +0000 (11:24 +0900)]
Set nullptr to the data of channel object

To prevent using invalid data, this patch sets the nullptr to the data
of the channel object.

Change-Id: I22830f5ceaea8d9f0918c8caef5aa5c828c632c1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoRelease version 0.1.20 32/316332/1 accepted/tizen/unified/20240820.163520 accepted/tizen/unified/dev/20240821.053418 accepted/tizen/unified/x/20240821.013952
Hwankyu Jhun [Mon, 19 Aug 2024 11:09:27 +0000 (20:09 +0900)]
Release version 0.1.20

Changes:
 - Prevent task name duplication
 - Reserve a main task

Change-Id: Ic72153fbe0544493e604949edf031d2c0002f72d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
9 months agoReserve a main task 75/316275/1
Hwankyu Jhun [Mon, 19 Aug 2024 01:26:33 +0000 (10:26 +0900)]
Reserve a main task

When calling the tizen_core_init(), the main task will be created to reserve.
After this patch is applied, the tizen_core_task_create() returns
the created task if the task name is 'main'..

Change-Id: I247150a5e50ed08fb2bf6ca4e8a9999ff2dd3e6e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoPrevent task name duplication 33/315433/5
Changgyu Choi [Thu, 1 Aug 2024 02:19:27 +0000 (11:19 +0900)]
Prevent task name duplication

When trying to create a task with an already existing name, it returns an error.

Change-Id: Ie67105b2e0e82ea20f570b4ad73ce5c2253d166d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
13 months agoRelease version 0.1.19 35/310335/1 accepted/tizen/unified/20240426.035525 accepted/tizen/unified/dev/20240620.000130 accepted/tizen/unified/toolchain/20240507.011822 accepted/tizen/unified/x/20240430.094801 accepted/tizen/unified/x/asan/20240625.092201
Hwankyu Jhun [Thu, 25 Apr 2024 11:40:30 +0000 (20:40 +0900)]
Release version 0.1.19

Changes:
 - Modify event fd impelemntation

Change-Id: I9f30fae9b246d1e84148c7c37a5f13f6904fa95c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoModify event fd impelemntation 28/310328/3
Hwankyu Jhun [Thu, 25 Apr 2024 10:42:50 +0000 (19:42 +0900)]
Modify event fd impelemntation

This patch handles EINTR error.

Change-Id: Idb3bc695d1e0d420d7609ee5475847a8381270b5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRelease version 0.1.18 56/308856/1 accepted/tizen/unified/20240402.151320 accepted/tizen/unified/20240402.163622 accepted/tizen/unified/x/20240403.102932
Hwankyu Jhun [Tue, 2 Apr 2024 03:38:51 +0000 (12:38 +0900)]
Release version 0.1.18

Changes:
 - Fix wrong description

Change-Id: Ie8299c0d96da381add01ef8a50ad9063db51caa6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoFix wrong description 36/308836/1
Hwankyu Jhun [Tue, 2 Apr 2024 00:38:29 +0000 (09:38 +0900)]
Fix wrong description

The function is changed to tizen_core_channel_set_id().

Change-Id: I6043ca5eb56571137b1835f3cf52f0941170153a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRelease version 0.1.17 10/308710/1 accepted/tizen/unified/20240401.165613 accepted/tizen/unified/x/20240402.012049
Hwankyu Jhun [Fri, 29 Mar 2024 05:52:17 +0000 (14:52 +0900)]
Release version 0.1.17

Changes:
 - Remove duplicated type definition
 - Remove tizen-shared-queue dependency

Change-Id: I892c416198dcf412d09816f08b189acdd50770aa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRemove tizen-shared-queue dependency 09/308709/2
Hwankyu Jhun [Fri, 29 Mar 2024 05:44:58 +0000 (14:44 +0900)]
Remove tizen-shared-queue dependency

Currently, there is a circular dependency problem by the bundle package.
The tizen-shared-queue library exists in the bundle package.
This patch removes the dependency of tizen-shared-queue from tizen-core.

+-----------------------------------------------------------------------------+
| circle found: efl->tizen-core->bundle->json-glib->gobject-introspection     |
|               ->cairo->efl                                                  |
+-----------------------------------------------------------------------------+

Change-Id: I636d9bec4da0a490625d549e91e99fe55369cc10
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRemove duplicated type definition 80/308580/1
Hwankyu Jhun [Thu, 28 Mar 2024 00:12:25 +0000 (09:12 +0900)]
Remove duplicated type definition

The tizen_core_channel_receive_cb() is defined in the tizen_core.h header.

Change-Id: I7a4ebecdc1bf1ef0d273ba3cf4e0b1cf5b763840
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRelease version 0.1.16 95/308395/1 accepted/tizen/unified/20240325.141247 accepted/tizen/unified/x/20240326.073251
Hwankyu Jhun [Sun, 24 Mar 2024 23:15:42 +0000 (08:15 +0900)]
Release version 0.1.16

Changes:
 - Fix build break issue

Change-Id: I806d134247eab2a56f2f6e68b97a72ce5d36d241
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoFix build break issue 94/308394/1
Hwankyu Jhun [Sun, 24 Mar 2024 22:41:42 +0000 (07:41 +0900)]
Fix build break issue

- Add a missing header inclusion

Change-Id: I5397d59a60c230f32dad167cbc0f98af8220f00d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRelease version 0.1.15 11/308311/1 accepted/tizen/unified/20240322.174300
Hwankyu Jhun [Thu, 21 Mar 2024 08:00:07 +0000 (17:00 +0900)]
Release version 0.1.15

Changes:
 - Modify directory hierarchy
 - Fix wrong header guard name
 - Add signal handler

Change-Id: Ie3d7d17bdc2fb1d48b2f5d14b08dca8049da848c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoAdd signal handler 98/308198/2
Hwankyu Jhun [Tue, 19 Mar 2024 11:02:16 +0000 (20:02 +0900)]
Add signal handler

To handle specific signals, tizen core adds signal handlers.

Change-Id: Iad1b54601128a93a09e13585afa40fef0c1c2357
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoFix wrong header guard name 78/308178/1
Hwankyu Jhun [Tue, 19 Mar 2024 05:38:02 +0000 (14:38 +0900)]
Fix wrong header guard name

The guard name should be TIZEN_CORE_SOURCE_H_.

Change-Id: I790af122871a6a6e2d8868fcad06acf1bd7c560c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoModify directory hierarchy 70/308170/1
Hwankyu Jhun [Tue, 19 Mar 2024 04:39:07 +0000 (13:39 +0900)]
Modify directory hierarchy

The tizen_base directory is changed to 'tizen-core'.
The path of the tizen-core directory is changed to 'src/tizen-core'.
The path of the include directory is changed to 'src/tizen-core/include'.

src/
 + src/tizen-core
 + src/tizen-core/include
 + src/tizen-core/channel
 + src/tizen-core/event

Change-Id: I696b98c5bc7c1b1c97a54b46391a4c31456a9cf3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoRelease version 0.1.14 90/307990/1 accepted/tizen/unified/20240320.110703 accepted/tizen/unified/20240320.151851
Hwankyu Jhun [Fri, 15 Mar 2024 05:31:19 +0000 (14:31 +0900)]
Release version 0.1.14

Changes:
 - Add description for ownership of the event handle
 - Add attached flag to EventBroker class
 - Modify EventSource imeplementation
 - Modify ChannelSource implementation

Change-Id: I388d7ee76bb6c666b9d3b675dbfca90b2a258234
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoModify ChannelSource implementation 85/307985/3
Hwankyu Jhun [Fri, 15 Mar 2024 03:58:12 +0000 (12:58 +0900)]
Modify ChannelSource implementation

The ChannelSource uses the base class instead of idle source.

Change-Id: I7703c3fa565838a29d2066239f2b5aaca1b9d9d5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoModify EventSource imeplementation 70/307970/5
Hwankyu Jhun [Fri, 15 Mar 2024 01:12:38 +0000 (10:12 +0900)]
Modify EventSource imeplementation

The EventSource uses the base class instead of idle source.

Change-Id: I3f41c79e7c066aa5220e818eaadff379fa0cd858
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoAdd attached flag to EventBroker class 67/307967/2
Hwankyu Jhun [Fri, 15 Mar 2024 00:39:19 +0000 (09:39 +0900)]
Add attached flag to EventBroker class

To check whether the EventBroker object is attached or not, the flag is added.

Change-Id: I53d9ba060c3283f12a7b400ae4b9ea9b24b417d8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoAdd description for ownership of the event handle 63/307963/1
Hwankyu Jhun [Thu, 14 Mar 2024 23:45:34 +0000 (08:45 +0900)]
Add description for ownership of the event handle

When the tizen_core_add_event() is called, the ownership of the event
handle is moved to the tizen core. It will be released when the source
handle is released automatically.

Change-Id: I31fd82714af1e02e9ccceeb396b8b2b34334dfde
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 0.1.13 39/307939/1 accepted/tizen/unified/20240315.033003 accepted/tizen/unified/x/20240318.021710
Hwankyu Jhun [Thu, 14 Mar 2024 11:01:08 +0000 (20:01 +0900)]
Release version 0.1.13

Changes:
 - Fix memory leak

Change-Id: I08e373b3583235cf2ff211f9b2952afd6680e3bf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoFix memory leak 34/307934/3
Hwankyu Jhun [Thu, 14 Mar 2024 10:40:45 +0000 (19:40 +0900)]
Fix memory leak

The allocated GSource should be released.
Calling g_source_unref() is needed.

Change-Id: Icee8d138ee8b165b9cef5c5b1203d8e7b2228c07
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 0.1.12 29/307929/1
Hwankyu Jhun [Thu, 14 Mar 2024 09:39:39 +0000 (18:39 +0900)]
Release version 0.1.12

Changes:
 - Fix memory corruption

Change-Id: I4c20c696de627c26b5d484b488b24bcd462dbd50
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoFix memory corruption 04/307904/4
Hwankyu Jhun [Thu, 14 Mar 2024 06:17:30 +0000 (15:17 +0900)]
Fix memory corruption

- Fix use after free
- Fix double free

Change-Id: I1279fdbd06b0f4e3a7e04b304461ffbc1aca0214
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 0.1.11 25/307825/1
Hwankyu Jhun [Wed, 13 Mar 2024 10:24:51 +0000 (19:24 +0900)]
Release version 0.1.11

Changes:
 - Improve code coverage
 - Fix typo of description

Change-Id: If950346ee4ce33a2ae50523460523827576105fd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoFix typo of description 24/307824/1
Hwankyu Jhun [Wed, 13 Mar 2024 10:23:16 +0000 (19:23 +0900)]
Fix typo of description

- Fix description of tizen_core_source_remove_poll().

Change-Id: Ibc58ad74b4aa2b54bde777d811c3466b5d60ec34
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoImprove code coverage 21/307821/1
Hwankyu Jhun [Wed, 13 Mar 2024 10:11:59 +0000 (19:11 +0900)]
Improve code coverage

- Add missing test cases
- Excludes some lines

Change-Id: I81bae865d3e548038c5263d05ae926c36f3920aa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 0.1.10 38/307738/1 accepted/tizen/unified/20240313.134726 accepted/tizen/unified/20240313.135718 accepted/tizen/unified/x/20240314.073229
Hwankyu Jhun [Tue, 12 Mar 2024 22:58:22 +0000 (07:58 +0900)]
Release version 0.1.10

Changes:
 - Remove warning messages

Change-Id: I0de150442d66aa35373a0ddd0e55aa6bf2a800fe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRemove warning messages 35/307735/1
Hwankyu Jhun [Tue, 12 Mar 2024 22:41:20 +0000 (07:41 +0900)]
Remove warning messages

The name of 'lock' variable is changed to 'idle_lock'.
The warning message is '[-Werror=shadow]'.

Change-Id: Ie59c2c28f3d5d7c3bb1bb827a356f585e9959aac
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 0.1.9 61/307661/1
Hwankyu Jhun [Tue, 12 Mar 2024 06:23:01 +0000 (15:23 +0900)]
Release version 0.1.9

Changes:
 - Fix crash issues

Change-Id: I226edabf206f4c4fd7b2a3ccd1db8947a832a327
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoFix crash issues 55/307655/1
Hwankyu Jhun [Tue, 12 Mar 2024 06:15:06 +0000 (15:15 +0900)]
Fix crash issues

If the context is default, tizen-core increases reference count of
default main context.

Change-Id: I3bfce046063dc6e013b1308f45526ff59c0d1b3d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 0.1.8 46/307646/1
Hwankyu Jhun [Tue, 12 Mar 2024 05:31:51 +0000 (14:31 +0900)]
Release version 0.1.8

Changes:
 - Modify implementation of Source class
 - Modify cpu boosting api
 - Consider thread loop synchronization
 - Set thread name
 - Fix heap use after free case
 - Modify critical section
 - Fix deadlock issue
 - Fix lcov option

Change-Id: I62c7ed2106a9f06643ce2444d60c006b2e851012
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoFix lcov option 20/307620/2
Hwankyu Jhun [Tue, 12 Mar 2024 04:58:02 +0000 (13:58 +0900)]
Fix lcov option

"mismatch,unused" options are added.

Change-Id: Iab14c5a971f55ec0a77a200131f0f6738a8c7e77
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoFix deadlock issue 90/307590/4
Hwankyu Jhun [Tue, 12 Mar 2024 04:37:33 +0000 (13:37 +0900)]
Fix deadlock issue

To avoid deadlock issue, a new member variable is added to the Task class.
When the thread calls notify_one() of std::condition_variable, the main loop
may not be running. In that case, the main thread can be blocked.

Change-Id: I37543a07f2ef837e9c2ce3845c6cd00c057e47ad
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoModify critical section 39/307539/2
Hwankyu Jhun [Tue, 12 Mar 2024 02:15:37 +0000 (11:15 +0900)]
Modify critical section

The mutex lock is not required because the value is not set in loop_ variable.

Change-Id: I26cddc439b04b54738b26a2cfab7edd78541fd27
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoFix heap use after free case 31/307531/4
Changgyu Choi [Tue, 12 Mar 2024 00:45:36 +0000 (09:45 +0900)]
Fix heap use after free case

When the app is terminated, a problem may occur in that the ContextManager object is accessed after it has been destroyed.
In this case, we fix the part where the problem may occur by accessing the freed memory.

Change-Id: I78fb58121f3bee60b8ac0fa7d1586080478e5f20
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoSet thread name 38/307538/1
Hwankyu Jhun [Tue, 12 Mar 2024 02:12:00 +0000 (11:12 +0900)]
Set thread name

To distinguish threads, this patch sets the thread name using pthread_setname_np().

Change-Id: Ic02ed2c25dddef22c4d456dab45fdcb2b53e81a0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoConsider thread loop synchronization 32/307532/2
Hwankyu Jhun [Tue, 12 Mar 2024 01:04:18 +0000 (10:04 +0900)]
Consider thread loop synchronization

Even though the tizen_core_task_run() function is called, the
tizen_core_task_is_running() can return 'false'.
To make running thread loop synchronously, using condition variable is needed.

Change-Id: Iccefb111cdde8f6121d479547c457e89c75b3569
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoModify cpu boosting api 87/307387/3
Changgyu Choi [Fri, 8 Mar 2024 01:49:41 +0000 (10:49 +0900)]
Modify cpu boosting api

Adds:
 - tizen_core_clear_cpu_boosting()

Modifies:
 - tizen_core_set_cpu_boosting_level()
   -> tizen_core_set_cpu_boosting()

Change-Id: I26a583e68a4710a4316b982b5c78c1c352998143
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoModify implementation of Source class 80/307380/1
Hwankyu Jhun [Thu, 7 Mar 2024 22:23:37 +0000 (07:23 +0900)]
Modify implementation of Source class

The Source class uses std::list instead of std::vector to manage PollFd instances.

Change-Id: Ice0098b800aa4fe53cedf997c5653e4ffbf5e161
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 0.1.7 72/307372/2 accepted/tizen/unified/20240307.171943 accepted/tizen/unified/x/20240311.100006
Changgyu Choi [Thu, 7 Mar 2024 11:24:32 +0000 (20:24 +0900)]
Release version 0.1.7

Changes:
 - Fix crash issue

Change-Id: I03e64ed0a5df6090d00c1125de80ff8f41a9077b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoFix crash issue 71/307371/3
Changgyu Choi [Thu, 7 Mar 2024 11:04:51 +0000 (20:04 +0900)]
Fix crash issue

This patch solves the problem of repeating an event handler when adding
or removing an event within a callback during an event iteration.

Change-Id: I2a9ebf3bcb467ad7834f2c9cc3737e53b468203b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
15 months agoRelease version 0.1.6 06/307206/1 accepted/tizen/unified/20240306.174228 accepted/tizen/unified/toolchain/20240311.065248 accepted/tizen/unified/x/20240308.033435
Hwankyu Jhun [Wed, 6 Mar 2024 04:48:04 +0000 (13:48 +0900)]
Release version 0.1.6

Changes:
 - Add descriptions of APIs

Change-Id: I4ca6fa8c5eab7035997288d91f7a9d063a1bde26
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoAdd descriptions of APIs 00/306500/43
Hwankyu Jhun [Thu, 22 Feb 2024 06:14:49 +0000 (15:14 +0900)]
Add descriptions of APIs

Change-Id: I5e30e3c2934e321c8cd70bdbcb132bdb32590b12
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 0.1.5 16/306816/1 accepted/tizen/unified/20240228.170412 accepted/tizen/unified/x/20240304.072442 accepted/tizen/unified/x/20240304.072717
Hwankyu Jhun [Wed, 28 Feb 2024 02:20:29 +0000 (11:20 +0900)]
Release version 0.1.5

Changes:
 - Modify implementation of poll fd
 - Modify source management
 - Modify API implementations

Change-Id: I01ee11b9af2ad2eaf2ab87fb03f69eed5bb88901
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoModify API implementations 09/306809/3
Hwankyu Jhun [Wed, 28 Feb 2024 00:45:43 +0000 (09:45 +0900)]
Modify API implementations

- The return type of the functions are changed to integer.
- The return values are changed to output parameters.
- Some functions names are changed.
- The name of parameters are changed.

Change-Id: If4a5d006dbc31142247305869a4bb1f355e1337b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoModify source management 76/306676/4
Hwankyu Jhun [Mon, 26 Feb 2024 05:51:29 +0000 (14:51 +0900)]
Modify source management

There are two ways to delete sources.
 - tizen_core_remove_source()
 - tizen_core_destroy_source()

This patch modifies the source management. If the source is
EventSout<T>, we removes the source from event sources list.
When the tizen_core_remove_source() is called if the source is not attached,
the funtionc returns TIZEN_CORE_ERROR_INVALID_CONTEXT error.

Change-Id: I26167c966da95fa45d3faa031561708e570ecabd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoModify implementation of poll fd 11/306611/6
Hwankyu Jhun [Fri, 23 Feb 2024 06:26:15 +0000 (15:26 +0900)]
Modify implementation of poll fd

If the use count of the poll fd is less than 3, the tizen_core_source_remove_poll()
returns TIZEN_CORE_ERROR_INVALID_CONTEXT.
If the poll fd is already added, the tizen_core_source_add_poll()
returns TIZEN_CORE_ERROR_INVALID_CONTEXT.
The tizen_core_source_get_poll_fds() function is removed.

Change-Id: I91254d94ad07eb64695c8d85f8cea1cdad0e6daf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 0.1.4 98/306398/1 accepted/tizen/unified/20240222.012635 accepted/tizen/unified/x/20240222.211053
Hwankyu Jhun [Wed, 21 Feb 2024 05:33:55 +0000 (14:33 +0900)]
Release version 0.1.4

Changes:
 - Add a new internal api
 - Remove descriptions of APIs
 - Modify tizen-core implmentation
 - Change function name of tizen_core_event_gen_type()
 - Add a new enumeration for poll events

Change-Id: I390feff9f81ddf489477aae91d0e7f80850af460
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoAdd a new enumeration for poll events 95/306395/3
Hwankyu Jhun [Wed, 21 Feb 2024 05:13:13 +0000 (14:13 +0900)]
Add a new enumeration for poll events

The tizen_core_poll_event_e is added.

Change-Id: I60a4502f94b6bd46359105bda1aa67070726d3e0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoChange function name of tizen_core_event_gen_type() 94/306394/1
Hwankyu Jhun [Wed, 21 Feb 2024 05:07:44 +0000 (14:07 +0900)]
Change function name of tizen_core_event_gen_type()

The function name is changed to tizen_core_event_generate_type().

Change-Id: I991261208735752189efd770ddcbb522014ac010
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoModify tizen-core implmentation 88/306388/2
Hwankyu Jhun [Wed, 21 Feb 2024 04:38:46 +0000 (13:38 +0900)]
Modify tizen-core implmentation

The tizen_core_fini() function is changed to the tizen_core_shutdown().
The tizen_core_shutdown() calls the ContextManager::DisposeAll() to release
all task resources.

Change-Id: If7c540844f8c4d07063d2f254eb611493e4beed5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRemove descriptions of APIs 83/306383/1
Hwankyu Jhun [Wed, 21 Feb 2024 03:51:47 +0000 (12:51 +0900)]
Remove descriptions of APIs

Change-Id: Ibb6c60daa50685d43cd09cb4e8dc7298e18811a9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoAdd a new internal api 35/305235/7
Changgyu Choi [Tue, 30 Jan 2024 07:43:07 +0000 (16:43 +0900)]
Add a new internal api

Adds:
 - tizen_core_set_cpu_boosting_level()

Change-Id: I8c4303071f11f48b059b7a8a739b4aab11e0beb9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
16 months agoRelease version 0.1.3 92/305292/1 accepted/tizen/unified/20240202.020810 accepted/tizen/unified/x/20240205.063827
Hwankyu Jhun [Wed, 31 Jan 2024 02:15:05 +0000 (11:15 +0900)]
Release version 0.1.3

Changes:
 - Modify PollFd
 - Set nullptr to GSourceFuncs
 - Fix wrong source management

Change-Id: I9baedf3b2bdca736a46fd0b61fef8f14e05520f5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoFix wrong source management 62/304862/1
Hwankyu Jhun [Thu, 25 Jan 2024 01:40:16 +0000 (10:40 +0900)]
Fix wrong source management

The created source must be managed by the source manager.

Change-Id: Iea7a864a7fdeff2fbb139e5c68f480abe1952549
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoSet nullptr to GSourceFuncs 14/304814/1
Hwankyu Jhun [Wed, 24 Jan 2024 03:43:21 +0000 (12:43 +0900)]
Set nullptr to GSourceFuncs

To remove warning messages about missing-field-initializers warning,
this patch sets nullptr to GSourceFuncs.

Change-Id: I03a7921921df1c9f0f82207e4b79af85cf1c800e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoModify PollFd 67/304367/2
Hwankyu Jhun [Tue, 16 Jan 2024 11:25:44 +0000 (20:25 +0900)]
Modify PollFd

The following APIs are added for adding poll fd to the source:
 - tizen_core_poll_fd_create()
 - tizen_core_poll_fd_destroy()
 - tizen_core_poll_fd_set_fd()
 - tizen_core_poll_fd_get_fd()
 - tizen_core_poll_fd_set_events()
 - tizen_core_poll_fd_get_events()
 - tizen_core_poll_fd_set_revents()
 - tizen_core_poll_fd_get_revents()

Change-Id: Ifedb72ef90d316c1f4203daa1c48dcbb8db75c12
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
17 months agoRelease version 0.1.2 76/304076/1 accepted/tizen_unified_riscv accepted/tizen/unified/20240110.154203 accepted/tizen/unified/riscv/20240111.042749
Changgyu Choi [Wed, 10 Jan 2024 00:48:06 +0000 (09:48 +0900)]
Release version 0.1.2

Changes:
 - Fix gcov build error

Change-Id: Ia7a88591822af0506061219afd8eb557fc3319c3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
17 months agoFix gcov build error 75/304075/1
Changgyu Choi [Wed, 10 Jan 2024 00:47:03 +0000 (09:47 +0900)]
Fix gcov build error

Change-Id: I3cc20d07bce438fda15a982f72eb802f251ed295
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
17 months agoRelease version 0.1.1 66/303566/1 accepted/tizen/unified/20240102.170001 accepted/tizen/unified/riscv/20240103.054532
Changgyu Choi [Tue, 2 Jan 2024 07:12:13 +0000 (16:12 +0900)]
Release version 0.1.1

Changes:
 - Add a missing header

Change-Id: If03eebc7652b6735cbba4f31276fd33682e5a3ee
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
17 months agoAdd a missing header 59/303559/1
Changgyu Choi [Tue, 2 Jan 2024 06:58:20 +0000 (15:58 +0900)]
Add a missing header

Adds:
 - stdexcept

Change-Id: I4946155985a42387307ec28ddb4ebae97d0fb1a2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
17 months agoInitial commit 33/303433/3
Hwankyu Jhun [Thu, 28 Dec 2023 00:58:16 +0000 (09:58 +0900)]
Initial commit

Change-Id: Ia04f71c1b0c4877b3ef9864c74cd59beaafd6369
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
17 months agoInitial empty repository master
Jinkun Jang [Thu, 28 Dec 2023 00:51:32 +0000 (00:51 +0000)]
Initial empty repository