Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
coshcage authored Jan 31, 2024
1 parent 594fbfe commit e0e242b
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions Samples/exp_2024-01-30_1.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// exp_2023-08-09_1.c
// This file demonstrates usage of svimrdb.
// Created by cosh.cage#hotmail.com on 08/09/23.
// Created by cosh.cage#hotmail.com on 01/30/24.
// Licence: GPLv2.
// Platform: Unix|GNU/Linux
//
Expand Down Expand Up @@ -282,8 +282,6 @@ void * bar(void * ptr)
siCommitTransaction(ptrans);
}

// #include <unistd.h>

int main()
{
pthread_t pt1, pt2;
Expand All @@ -301,37 +299,5 @@ int main()

siReleaseAllTransaction();


return 0;
}

//#define NTHREADS 1
//
//int main_x()
//{
// pthread_t thread_id[NTHREADS];
// int i, j;
//
// for (i = 0; i < NTHREADS; i++)
// {
// pthread_create(&thread_id[i], NULL, bar, NULL);
// pthread_create(&thread_id[i + 1], NULL, qux, NULL);
// }
//
// for (j = 0; j < NTHREADS; j++)
// {
// pthread_join(thread_id[j], NULL);
// pthread_join(thread_id[j + 1], NULL);
// }
//
// if (ptr)
// free(ptr);
//
// //siReleaseAllTransaction();
//
// //siDeleteTable(NULL, ptbl_student);
// //siDeleteTable(NULL, ptbl_course);
// //siDeleteTable(NULL, ptbl_sc);
//
// return 0;
//}

0 comments on commit e0e242b

Please sign in to comment.